Permalink
Browse files

remove unneeded method

  • Loading branch information...
1 parent c359e8b commit cc370aac0b59ef28ead43df22f26e84cd52f6f42 @johnbintz johnbintz committed Jun 23, 2011
Showing with 0 additions and 30 deletions.
  1. +0 −4 lib/jasmine/files_list.rb
  2. +0 −26 spec/lib/jasmine/files_list_spec.rb
@@ -33,10 +33,6 @@ def has_spec_outside_scope?
@spec_outside_scope
end
- def use_spec?(file)
- spec_filter.empty? || spec_filter.include?(file)
- end
-
def filtered?
files != filtered_files
end
@@ -56,32 +56,6 @@
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' }

0 comments on commit cc370aa

Please sign in to comment.