Sha256: fc13c07f118926b6bbc2f21625b5a220185e4d11a59b6a6b1dd62f7b1388ee63

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Blueprints::Buildable do
  before do
    mock = @mock
    @blueprint = Blueprints::Blueprint.new(:blueprint, __FILE__) { mock }
  end

  describe "normalize attributes" do
    it "should allow passing dependent normalize Blueprints::Dependency object" do
      Blueprints::Buildable.normalize_attributes(:name => Blueprints::Dependency.new(:blueprint)).should == {:name => @mock} 
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blueprints-0.8.2 spec/unit/buildable_spec.rb
blueprints-0.8.1 spec/unit/buildable_spec.rb
blueprints-0.8.0 spec/unit/buildable_spec.rb