Sha256: 892d111811349fabfb246015fdb53c598e02bdb6f38392dd3589f646d8c9184c

Contents?: true

Size: 692 Bytes

Versions: 18

Compression:

Stored size: 692 Bytes

Contents

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

describe Blueprints do
  it "should build cherry blueprint" do
    build :cherry
    @cherry.should_not be_nil
    @cherry.should be_instance_of(Fruit)
    @cherry.species.should == 'cherry'
  end

  it "should not build cherry if not asked" do
    @cherry.should == nil
  end

  describe "prebuilt blueprints" do
    it "big cherry should have size of 10 even if it was changed in test below" do
      @big_cherry.size.should == 10
      @big_cherry.size = 15
    end

    it "big cherry should have size of 10 even if it was changed in test above" do
      @big_cherry.size.should == 10
      @big_cherry.size = 13
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
blueprints-0.7.3 spec/no_db/blueprints_spec.rb
blueprints-0.7.2 spec/no_db/blueprints_spec.rb
blueprints-0.7.1 spec/no_db/blueprints_spec.rb
blueprints-0.6.3 spec/no_db/blueprints_spec.rb
blueprints-0.6.2 spec/no_db/blueprints_spec.rb
blueprints-0.6.1 spec/no_db/blueprints_spec.rb
blueprints-0.6.0 spec/no_db/blueprints_spec.rb
blueprints-0.5.1 spec/no_db/blueprints_spec.rb
blueprints-0.5.0 spec/no_db/blueprints_spec.rb
blueprints-0.4.2 spec/no_db/blueprints_spec.rb
blueprints-0.4.1 spec/no_db/blueprints_spec.rb
blueprints-0.4.0 spec/no_db/blueprints_spec.rb
blueprints-0.3.4 spec/no_db/blueprints_spec.rb
blueprints-0.3.3 spec/no_db/blueprints_spec.rb
blueprints-0.3.2 spec/no_db/blueprints_spec.rb
blueprints-0.3.1 spec/no_db/blueprints_spec.rb
blueprints-0.3.0 spec/no_db/blueprints_spec.rb
blueprints-0.2.4 spec/no_db/blueprints_spec.rb