pipeline 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/VERSION +1 -1
- data/lib/pipeline/stage/base.rb +1 -1
- data/pipeline.gemspec +1 -1
- data/spec/pipeline/stage/base_spec.rb +8 -0
- metadata +1 -1
data/CHANGELOG
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/lib/pipeline/stage/base.rb
CHANGED
@@ -11,7 +11,7 @@ module Pipeline
|
|
11
11
|
transactional_attr :status
|
12
12
|
private :status=
|
13
13
|
|
14
|
-
belongs_to :pipeline, :class_name => "Pipeline::Base"
|
14
|
+
belongs_to :pipeline, :class_name => "Pipeline::Base", :foreign_key => 'pipeline_instance_id'
|
15
15
|
|
16
16
|
@@chain = []
|
17
17
|
def self.>>(next_stage)
|
data/pipeline.gemspec
CHANGED
@@ -84,6 +84,14 @@ module Pipeline
|
|
84
84
|
stage.should be_an_instance_of(SampleStage)
|
85
85
|
end
|
86
86
|
|
87
|
+
it "should belong to pipeline instance" do
|
88
|
+
pipeline = Pipeline::Base.create
|
89
|
+
@stage.pipeline = pipeline
|
90
|
+
@stage.save!
|
91
|
+
|
92
|
+
Base.find(@stage.id).pipeline.should == pipeline
|
93
|
+
end
|
94
|
+
|
87
95
|
end
|
88
96
|
|
89
97
|
describe "- execution (success)" do
|