Sha256: 44e83858a1f5aa92a34639f9162411791cab5d18e78a1ed1da101609650138ee
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require File.join(File.dirname(__FILE__), 'spec_helper') describe Courgette do describe '.features' do it "should return a list of Courgette::Feature objects" do Courgette.features.first.should be_an_instance_of(Courgette::Feature) Courgette.features.second.should be_an_instance_of(Courgette::Feature) end it "should glob the path for feature files and get them by path" do Courgette.features.map(&:path).should include(Rails.root.join('features/user_eats_rabbits.feature').to_s) Courgette.features.map(&:path).should include(Rails.root.join('features/visitor_transforms.feature').to_s) end end describe '.find' do it "should find a feature by param" do @feature = Courgette.find('user-eats-rabbits') @feature.should be_an_instance_of(Courgette::Feature) @feature.path.should == Rails.root.join('features/user_eats_rabbits.feature').to_s end end describe '.first' do it "should return the first feature" do Courgette.first.should == Courgette.features.first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jnicklas-courgette-0.0.3 | spec/courgette_spec.rb |