rules_engine_templates 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -95,8 +95,8 @@ describe RulesEngine::Rule::<%=rule_class%> do
95
95
  describe "the expected_outcomes" do
96
96
  it "should be next and stop failure" do
97
97
  <%=rule_name%> = RulesEngine::Rule::<%=rule_class%>.new
98
- <%=rule_name%>.expected_outcomes.should include(:outcome => RulesEngine::Rule::Outcome::NEXT)
99
- <%=rule_name%>.expected_outcomes.should include(:outcome => RulesEngine::Rule::Outcome::STOP_FAILURE)
98
+ <%=rule_name%>.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::NEXT
99
+ <%=rule_name%>.expected_outcomes[1][:outcome].should == RulesEngine::Rule::Outcome::STOP_FAILURE
100
100
  end
101
101
  end
102
102
 
@@ -82,7 +82,8 @@ describe RulesEngine::Rule::<%=rule_class%> do
82
82
  describe "the expected_outcomes" do
83
83
  it "should be next and stop success" do
84
84
  filter = RulesEngine::Rule::<%=rule_class%>.new
85
- filter.expected_outcomes.should == [{:outcome => RulesEngine::Rule::Outcome::NEXT}, {:outcome => RulesEngine::Rule::Outcome::STOP_SUCCESS}]
85
+ filter.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::NEXT
86
+ filter.expected_outcomes[1][:outcome].should == RulesEngine::Rule::Outcome::STOP_SUCCESS
86
87
  end
87
88
  end
88
89
 
@@ -115,7 +115,8 @@ describe RulesEngine::Rule::<%=rule_class%> do
115
115
  describe "the expected_outcomes" do
116
116
  it "should be next and stop success" do
117
117
  filter = RulesEngine::Rule::<%=rule_class%>.new
118
- filter.expected_outcomes.should == [{:outcome => RulesEngine::Rule::Outcome::NEXT}, {:outcome => RulesEngine::Rule::Outcome::STOP_SUCCESS}]
118
+ filter.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::NEXT
119
+ filter.expected_outcomes[1][:outcome].should == RulesEngine::Rule::Outcome::STOP_SUCCESS
119
120
  end
120
121
  end
121
122
 
@@ -119,8 +119,8 @@ describe RulesEngine::Rule::<%=rule_class%> do
119
119
  describe "the expected_outcomes" do
120
120
  it "should be next and stop failure" do
121
121
  <%=rule_name%> = RulesEngine::Rule::<%=rule_class%>.new
122
- <%=rule_name%>.expected_outcomes.should include(:outcome => RulesEngine::Rule::Outcome::NEXT)
123
- <%=rule_name%>.expected_outcomes.should include(:outcome => RulesEngine::Rule::Outcome::STOP_FAILURE)
122
+ <%=rule_name%>.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::NEXT
123
+ <%=rule_name%>.expected_outcomes[1][:outcome].should == RulesEngine::Rule::Outcome::STOP_FAILURE
124
124
  end
125
125
  end
126
126
 
@@ -115,7 +115,7 @@ describe RulesEngine::Rule::<%=rule_class%> do
115
115
  describe "the expected_outcomes" do
116
116
  it "should be next and stop success" do
117
117
  filter = RulesEngine::Rule::<%=rule_class%>.new
118
- filter.expected_outcomes.should == [:outcome => RulesEngine::Rule::Outcome::NEXT]
118
+ filter.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::NEXT
119
119
  end
120
120
  end
121
121
 
@@ -81,7 +81,7 @@ describe RulesEngine::Rule::<%=rule_class%> do
81
81
  describe "the expected_outcomes" do
82
82
  it "should be outcome next" do
83
83
  <%=rule_name%> = RulesEngine::Rule::<%=rule_class%>.new
84
- <%=rule_name%>.expected_outcomes.should == [:outcome => RulesEngine::Rule::Outcome::NEXT]
84
+ <%=rule_name%>.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::NEXT
85
85
  end
86
86
  end
87
87
 
@@ -81,7 +81,7 @@ describe RulesEngine::Rule::<%=rule_class%> do
81
81
  describe "the expected_outcomes" do
82
82
  it "should be outcome next" do
83
83
  <%=rule_name%> = RulesEngine::Rule::<%=rule_class%>.new
84
- <%=rule_name%>.expected_outcomes.should == [:outcome => RulesEngine::Rule::Outcome::NEXT]
84
+ <%=rule_name%>.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::NEXT
85
85
  end
86
86
  end
87
87
 
@@ -95,8 +95,7 @@ describe RulesEngine::Rule::<%=rule_class%> do
95
95
  describe "the expected_outcomes" do
96
96
  it "should be start workflow" do
97
97
  <%=rule_name%> = RulesEngine::Rule::<%=rule_class%>.new
98
- <%=rule_name%>.should_receive(:workflow).and_return('mock workflow')
99
- <%=rule_name%>.expected_outcomes.should == [:outcome => RulesEngine::Rule::Outcome::START_WORKFLOW, :workflow_code => "mock workflow"]
98
+ <%=rule_name%>.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::START_WORKFLOW
100
99
  end
101
100
  end
102
101
 
@@ -82,7 +82,7 @@ describe RulesEngine::Rule::<%=rule_class%> do
82
82
  describe "the expected_outcomes" do
83
83
  it "should be outcome stop success" do
84
84
  <%=rule_name%> = RulesEngine::Rule::<%=rule_class%>.new
85
- <%=rule_name%>.expected_outcomes.should == [:outcome => RulesEngine::Rule::Outcome::STOP_SUCCESS]
85
+ <%=rule_name%>.expected_outcomes[0][:outcome].should == RulesEngine::Rule::Outcome::STOP_SUCCESS
86
86
  end
87
87
  end
88
88
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rules_engine_templates
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Douglas