blueprints 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,9 @@
1
1
  module Blueprints
2
2
  module Helper
3
3
  def build_plan(*names)
4
- Namespace.root.build(*names)
4
+ result = Namespace.root.build(*names).last
5
5
  Namespace.root.copy_ivars(self)
6
+ result
6
7
  end
7
8
 
8
9
  alias :build :build_plan
@@ -11,6 +11,14 @@ describe Blueprints do
11
11
  end
12
12
  end
13
13
 
14
+ it "should return result of built scenario when calling build" do
15
+ fruit = build :fruit
16
+ fruit.should == @fruit
17
+
18
+ apple = build :apple
19
+ apple.should == @apple
20
+ end
21
+
14
22
  describe "with apple scenario" do
15
23
  before do
16
24
  build :apple
@@ -1,4 +1,5 @@
1
1
  require 'fileutils'
2
+ require 'rubygems'
2
3
  require 'activerecord'
3
4
  begin
4
5
  require 'mysqlplus'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blueprints
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrius Chamentauskas
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-20 00:00:00 +03:00
12
+ date: 2009-11-12 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency