factories 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 646d0842c1762febbea8ad679e8c2aaf254bf637
4
- data.tar.gz: 460766260ed6859dbce67c65ea8b11f7d63f5f32
3
+ metadata.gz: dbfd4a993793a84a8f394a6070264468a1d4a246
4
+ data.tar.gz: e07d34fc52aaa45e988460d46dc35ad8b117e156
5
5
  SHA512:
6
- metadata.gz: c4feaeaee5706bf4798e783302347c4007848a462a1034db1e42a770c25af148def95d3df38dfe59d02073007b362d06fc09937da82087ad47010cd7d00f2d25
7
- data.tar.gz: db205472b835e46313863b632d3e57d40e3889c68eb44570f45c34d2a7eea55f4abe0676e5e2e2bc695895a671f601324dd965ef1bad36bc1143ace033bc5950
6
+ metadata.gz: baf7e5f4af6302100dfae3eb368bbabe539a661bb02f3b3599f57976511e3aca4792d78cd84781c57910f0a664e855c9862468754c0b76966e3106dcb6b8f53e
7
+ data.tar.gz: e8ed0cbf6c74f51c497d141ffbd5f5d25704a9300a014882e74b0b92db303be6a80254ab3b8015067f7cbc735e1164a03c6ccff212b408e4a163742201addbee
@@ -28,7 +28,7 @@ module Factories
28
28
  end
29
29
 
30
30
  def create
31
- build.tap { |instance| instance.save! }
31
+ build.tap { |instance| instance.save || raise("Factory model did not save") }
32
32
  end
33
33
 
34
34
  def build
@@ -1,3 +1,3 @@
1
1
  module Factories
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factories
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Herald