pickle-mongodb 0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 330921d2e15636d82ce5d133a7b722f3fd13b222
4
+ data.tar.gz: 15714d41ac39e550baf1677639b2929367548c30
5
+ SHA512:
6
+ metadata.gz: 7c4a744e4d7596b5bf651234894dde4119a1f80dee5bd755bfef97b0cb86cfda962c1c5ee4dd07c64aa5adf0493b392cf49c716c70a99c1d89ef7fe62959e82d
7
+ data.tar.gz: d2ba451a0440a527828d1f1449391a2169c47842267f4cb87790d644a0bfea4e162ef969475450f7eb526f58f06cd8c98e400a07d5119a73aa5790003b8f452e
@@ -0,0 +1,11 @@
1
+ require 'mongoid'
2
+ require 'factory_girl'
3
+ require 'pickle/world'
4
+ require 'rspec'
5
+ require 'cucumber/pickle_mongodb/finders.rb'
6
+
7
+ World(FactoryGirl::Syntax::Methods)
8
+
9
+ Pickle.configure do |config|
10
+ config.adapters = [:factory_girl]
11
+ end
@@ -0,0 +1,12 @@
1
+ require 'mongoid'
2
+
3
+ # Overide the implementation of first defined in the Mongoid finders
4
+ # to implement the new v3 API find method
5
+ module Mongoid
6
+ module Finders
7
+ extend Origin::Forwardable
8
+ def first(fields)
9
+ find_by(fields[:conditions]) #returns the first instance matching given criteria
10
+ end
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pickle-mongodb
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - Nic Jackson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: cucumber
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.2.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.2.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 2.12.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.12.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: pickle
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: 0.4.11
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: 0.4.11
55
+ - !ruby/object:Gem::Dependency
56
+ name: mongoid
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 3.1.6
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 3.1.6
69
+ - !ruby/object:Gem::Dependency
70
+ name: factory_girl
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: 4.3.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: 4.3.0
83
+ description: Pickle MongoDB allows you to write BDD steps to interact with your MongoDB
84
+ database, you can create and interrogate the database using the handy built in steps
85
+ email:
86
+ - nicholas.jackson@marks-and-spencer.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - lib/cucumber/pickle_mongodb.rb
92
+ - lib/cucumber/pickle_mongodb/finders.rb
93
+ homepage: https://github.com/nicholasjackson/pickle-mongodb
94
+ licenses:
95
+ - MIT
96
+ metadata: {}
97
+ post_install_message:
98
+ rdoc_options: []
99
+ require_paths:
100
+ - lib
101
+ required_ruby_version: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - '>='
104
+ - !ruby/object:Gem::Version
105
+ version: 1.9.3
106
+ required_rubygems_version: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ requirements: []
112
+ rubyforge_project:
113
+ rubygems_version: 2.1.11
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: Cucumber steps to easily integrate pickle with MongoDB
117
+ test_files: []