Sha256: ce3e4b55dfc81cb58e1767a7f7adabba8bf37396add3e4a7dcb007bd14b75474

Contents?: true

Size: 519 Bytes

Versions: 8

Compression:

Stored size: 519 Bytes

Contents

require File.join(File.dirname(__FILE__), "..", "spec_helper")

module Wally
  describe Feature do
    after do
      Feature.delete_all
    end

    it "stores a feature" do
      feature = Feature.new
      feature.content = "Feature: Bla"
      feature.save

      Feature.all.first.content.should == "Feature: Bla"
    end

    it "stores a feature path" do
      feature = Feature.new
      feature.path = "hello.feature"
      feature.save
      Feature.all.first.path.should == "hello.feature"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wally-0.0.28 spec/wally/feature_spec.rb
wally-0.0.27 spec/wally/feature_spec.rb
wally-0.0.26 spec/wally/feature_spec.rb
wally-0.0.25 spec/wally/feature_spec.rb
wally-0.0.24 spec/wally/feature_spec.rb
wally-0.0.22 spec/wally/feature_spec.rb
wally-0.0.21 spec/wally/feature_spec.rb
wally-0.0.20 spec/wally/feature_spec.rb