remove unneeded method

This commit is contained in:
John Bintz 2011-06-23 09:34:41 -04:00
parent c359e8b28b
commit cc370aac0b
2 changed files with 0 additions and 30 deletions

View File

@ -33,10 +33,6 @@ module Jasmine
@spec_outside_scope
end
def use_spec?(file)
spec_filter.empty? || spec_filter.include?(file)
end
def filtered?
files != filtered_files
end

View File

@ -56,32 +56,6 @@ describe Jasmine::FilesList do
end
end
describe '#use_spec?' do
let(:spec_file) { 'my/spec.js' }
let(:files_list) { Jasmine::FilesList.new(:only => filter) }
context 'no filter provided' do
let(:filter) { [] }
it "should allow the spec" do
files_list.use_spec?(spec_file).should be_true
end
end
context 'filter provided' do
let(:filter) { [ spec_file ] }
it "should use the spec" do
files_list.use_spec?(spec_file).should be_true
end
it "should not use the spec" do
files_list.use_spec?('other/file').should be_false
end
end
end
context 'with filtered specs' do
let(:files_list) { Jasmine::FilesList.new(:only => filter, :config => config) }
let(:spec_dir) { 'spec' }