utensils 0.0.5 → 0.0.6

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
@@ -47,7 +47,7 @@ page.should have_model(post) #looks for dom_id(post)
47
47
  page.find(post).should have_class('current') #presence of html class
48
48
  page.should have_image('banner.jpg') #presence of img
49
49
  page.should have_image(recipe.photo) #presence of dragonfly photo
50
- page.should have_order(recipe_3, recipe_1, recipe_2) #checks that objects are in a specific order
50
+ page.should have_order(recipe_3, recipe_1, recipe_2, within: '#recipes') #checks that objects are in a specific order
51
51
  ```
52
52
 
53
53
  ### database_cleaner
@@ -59,11 +59,11 @@ Sets up rspec to use database_cleaner instead of transactional fixtures
59
59
  Use shorthand for FactoryGirl, ie:
60
60
 
61
61
  ```ruby
62
- create(:post)
63
-
64
- # instead of
65
-
62
+ # instead of:
66
63
  FactoryGirl.create(:post)
64
+
65
+ # use:
66
+ create(:post)
67
67
  ```
68
68
 
69
69
  ### timecop
@@ -94,8 +94,12 @@ module Utensils
94
94
  url = img['src']
95
95
  dragonfly_hash = url[/media\/([^\/.]+)/, 1]
96
96
  if dragonfly_hash
97
- dragonfly_job = Dragonfly::Job.deserialize(dragonfly_hash, Dragonfly[:images])
98
- return true if dragonfly_job.uid == @image.send(:uid)
97
+ begin
98
+ dragonfly_job = Dragonfly::Job.deserialize(dragonfly_hash, Dragonfly[:images])
99
+ return true if dragonfly_job.uid == @image.send(:uid)
100
+ rescue Dragonfly::Serializer::BadString
101
+ continue
102
+ end
99
103
  end
100
104
  end
101
105
  return false
@@ -1,3 +1,3 @@
1
1
  module Utensils
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
4
+ version: 0.0.6
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-08-06 00:00:00.000000000 Z
12
+ date: 2012-11-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Rspec stuff we use over and over again
15
15
  email:
@@ -48,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
48
  version: '0'
49
49
  segments:
50
50
  - 0
51
- hash: -2684087969529147955
51
+ hash: 929149828403615344
52
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
@@ -57,10 +57,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  segments:
59
59
  - 0
60
- hash: -2684087969529147955
60
+ hash: 929149828403615344
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 1.8.11
63
+ rubygems_version: 1.8.23
64
64
  signing_key:
65
65
  specification_version: 3
66
66
  summary: Rspec stuff we use over and over again