lazy-head-gen 0.3.3 → 0.3.4

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/README.md CHANGED
@@ -145,6 +145,7 @@ The scaffold and admin_controller_test generators are reliant on you using a blu
145
145
 
146
146
  * Finish README - Built in assertions and test helpers
147
147
  * Add form output to the scaffold generator
148
+ * Add documentation for testing gem dependencies
148
149
 
149
150
  ## Contributing to lazy-head-gen
150
151
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "lazy-head-gen"
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stuart Chinery"]
data/lib/lazy-head-gen.rb CHANGED
@@ -60,20 +60,4 @@ module LazyHeadGen
60
60
  def ok?
61
61
  last_response.ok?
62
62
  end
63
-
64
- # A factory which we can use to build objects which are a bit more complex or
65
- # which require special setup which can't be done by Machinist without a bit of
66
- # help.
67
- #
68
- module Factory
69
- class << self
70
-
71
- def make_admin
72
- account = Account.make!
73
- account.save!
74
- account
75
- end
76
-
77
- end
78
- end
79
63
  end
@@ -87,7 +87,7 @@ describe "Admin::<%= @controller if @controller %>Controller" do
87
87
  describe "when logged in" do
88
88
 
89
89
  before do
90
- @account = Factory.make_admin
90
+ @account = Account.make!
91
91
  login_as_admin(@account)
92
92
  end
93
93
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy-head-gen
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.3
9
+ - 4
10
+ version: 0.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stuart Chinery