utensils 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +14 -0
- data/lib/utensils/factory_girl.rb +1 -0
- data/lib/utensils/version.rb +1 -1
- metadata +6 -5
data/README.md
CHANGED
@@ -18,6 +18,7 @@ require 'utensils/capybara_extensions'
|
|
18
18
|
require 'utensils/capybara_javascript'
|
19
19
|
require 'utensils/custom_matchers'
|
20
20
|
require 'utensils/database_cleaner'
|
21
|
+
require 'utensils/factory_girl'
|
21
22
|
require 'utensils/timecop'
|
22
23
|
require 'utensils/upload_macros'
|
23
24
|
require 'utensils/vcr'
|
@@ -48,10 +49,23 @@ page.should have_image('banner.jpg') #presence of img
|
|
48
49
|
page.should have_image(recipe.photo) #presence of dragonfly photo
|
49
50
|
page.should have_order(recipe_3, recipe_1, recipe_2) #checks that objects are in a specific order
|
50
51
|
```
|
52
|
+
|
51
53
|
### database_cleaner
|
52
54
|
|
53
55
|
Sets up rspec to use database_cleaner instead of transactional fixtures
|
54
56
|
|
57
|
+
### factory_girl
|
58
|
+
|
59
|
+
Use shorthand for FactoryGirl, ie:
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
create(:post)
|
63
|
+
|
64
|
+
# instead of
|
65
|
+
|
66
|
+
FactoryGirl.create(:post)
|
67
|
+
```
|
68
|
+
|
55
69
|
### timecop
|
56
70
|
|
57
71
|
Resets timecop after each spec
|
@@ -0,0 +1 @@
|
|
1
|
+
include FactoryGirl::Syntax::Methods
|
data/lib/utensils/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: utensils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06
|
12
|
+
date: 2012-08-06 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Rspec stuff we use over and over again
|
15
15
|
email:
|
@@ -28,6 +28,7 @@ files:
|
|
28
28
|
- lib/utensils/capybara_javascript.rb
|
29
29
|
- lib/utensils/custom_matchers.rb
|
30
30
|
- lib/utensils/database_cleaner.rb
|
31
|
+
- lib/utensils/factory_girl.rb
|
31
32
|
- lib/utensils/timecop.rb
|
32
33
|
- lib/utensils/upload_macros.rb
|
33
34
|
- lib/utensils/vcr.rb
|
@@ -47,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
47
48
|
version: '0'
|
48
49
|
segments:
|
49
50
|
- 0
|
50
|
-
hash:
|
51
|
+
hash: -2684087969529147955
|
51
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
53
|
none: false
|
53
54
|
requirements:
|
@@ -56,10 +57,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
57
|
version: '0'
|
57
58
|
segments:
|
58
59
|
- 0
|
59
|
-
hash:
|
60
|
+
hash: -2684087969529147955
|
60
61
|
requirements: []
|
61
62
|
rubyforge_project:
|
62
|
-
rubygems_version: 1.8.
|
63
|
+
rubygems_version: 1.8.11
|
63
64
|
signing_key:
|
64
65
|
specification_version: 3
|
65
66
|
summary: Rspec stuff we use over and over again
|