machinery 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/machinery.rb +2 -1
  2. metadata +4 -4
data/lib/machinery.rb CHANGED
@@ -34,6 +34,7 @@ module Machinery
34
34
  Machinery.make_scenario(self, names, &block)
35
35
  end
36
36
  alias_method :scenarios, :scenario
37
+ alias_method :make_scenarios, :scenario
37
38
 
38
39
  def rollback_scenario
39
40
  Machinery::ActiveRecord.clear
@@ -61,7 +62,7 @@ module Machinery
61
62
  def scenario(*names, &block)
62
63
  scenario(:__anonymous__, &block) and scenario(:__anonymous__) and return if names.empty?
63
64
  Machinery.scenario(names.first, &block) and return true if block_given?
64
- self.before(:all) { scenarios(*names) }
65
+ self.before(:all) { make_scenarios(*names) }
65
66
  self.after(:all) { rollback_scenarios }
66
67
  self.before(:each) { clone_instance_variables }
67
68
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: machinery
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 55
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 5
10
- version: 0.9.5
9
+ - 6
10
+ version: 0.9.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lawrence Pit
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-28 00:00:00 +11:00
18
+ date: 2011-07-06 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies: []
21
21