remove unneeded method
This commit is contained in:
parent
c359e8b28b
commit
cc370aac0b
@ -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
|
||||
|
@ -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' }
|
||||
|
Loading…
Reference in New Issue
Block a user