diff --git a/lib/jasmine/files_list.rb b/lib/jasmine/files_list.rb index a55480d..d88124f 100644 --- a/lib/jasmine/files_list.rb +++ b/lib/jasmine/files_list.rb @@ -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 diff --git a/spec/lib/jasmine/files_list_spec.rb b/spec/lib/jasmine/files_list_spec.rb index 2df980a..5ea8838 100644 --- a/spec/lib/jasmine/files_list_spec.rb +++ b/spec/lib/jasmine/files_list_spec.rb @@ -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' }