factory_girl_rails 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CONTRIBUTING.md +38 -0
- data/Gemfile.lock +2 -2
- data/README.md +16 -3
- data/lib/factory_girl_rails/railtie.rb +1 -0
- metadata +4 -3
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
We love pull requests. Here's a quick guide:
|
2
|
+
|
3
|
+
1. Fork the repo.
|
4
|
+
|
5
|
+
2. Run the tests. We only take pull requests with passing tests, and it's great
|
6
|
+
to know that you have a clean slate: `bundle && rake`
|
7
|
+
|
8
|
+
3. Add a test for your change. Only refactoring and documentation changes
|
9
|
+
require no new tests. If you are adding functionality or fixing a bug, we need
|
10
|
+
a test!
|
11
|
+
|
12
|
+
4. Make the test pass.
|
13
|
+
|
14
|
+
5. Push to your fork and submit a pull request.
|
15
|
+
|
16
|
+
|
17
|
+
At this point you're waiting on us. We like to at least comment on, if not
|
18
|
+
accept, pull requests within three business days (and, typically, one business
|
19
|
+
day). We may suggest some changes or improvements or alternatives.
|
20
|
+
|
21
|
+
Some things that will increase the chance that your pull request is accepted,
|
22
|
+
taken straight from the Ruby on Rails guide:
|
23
|
+
|
24
|
+
* Use Rails idioms and helpers
|
25
|
+
* Include tests that fail without your code, and pass with it
|
26
|
+
* Update the documentation, the surrounding one, examples elsewhere, guides,
|
27
|
+
whatever is affected by your contribution
|
28
|
+
|
29
|
+
Syntax:
|
30
|
+
|
31
|
+
* Two spaces, no tabs.
|
32
|
+
* No trailing whitespace. Blank lines should not have any space.
|
33
|
+
* Prefer &&/|| over and/or.
|
34
|
+
* MyClass.my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
35
|
+
* a = b and not a=b.
|
36
|
+
* Follow the conventions you see used in the source already.
|
37
|
+
|
38
|
+
And in case we didn't emphasize it enough: we love tests!
|
data/Gemfile.lock
CHANGED
@@ -2,7 +2,7 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
factory_girl_rails (1.1.0)
|
5
|
-
factory_girl (~> 2.
|
5
|
+
factory_girl (~> 2.1.0)
|
6
6
|
railties (>= 3.0.0)
|
7
7
|
|
8
8
|
GEM
|
@@ -56,7 +56,7 @@ GEM
|
|
56
56
|
diff-lcs (1.1.2)
|
57
57
|
erubis (2.6.6)
|
58
58
|
abstract (>= 1.0.0)
|
59
|
-
factory_girl (2.
|
59
|
+
factory_girl (2.1.0)
|
60
60
|
ffi (1.0.9)
|
61
61
|
gherkin (2.4.1)
|
62
62
|
json (>= 1.4.6)
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Rails
|
|
13
13
|
factory_girl_rails provides Rails integration for factory_girl. All
|
14
14
|
Rails-specific features are only compatible with Rails 3.
|
15
15
|
|
16
|
-
|
16
|
+
Currently, automatic factory definition loading is the only Rails-specific feature.
|
17
17
|
|
18
18
|
Download
|
19
19
|
--------
|
@@ -21,24 +21,37 @@ Download
|
|
21
21
|
Github: http://github.com/thoughtbot/factory_girl_rails/tree/master
|
22
22
|
|
23
23
|
Gem:
|
24
|
+
|
24
25
|
gem install factory_girl_rails
|
25
26
|
|
26
27
|
Configuration
|
27
28
|
-------------
|
28
29
|
|
29
|
-
Add
|
30
|
+
Add factory_girl_rails to your Gemfile:
|
30
31
|
|
31
32
|
gem 'factory_girl_rails'
|
32
33
|
|
34
|
+
Cucumber Integration
|
35
|
+
--------------------
|
36
|
+
|
37
|
+
factory_girl ships with step definitions for Cucumber integration. For more information, see the GETTING_STARTED file in the factory_girl repo.
|
38
|
+
|
39
|
+
|
33
40
|
More Information
|
34
41
|
----------------
|
35
42
|
|
36
43
|
factory_girl: http://github.com/thoughtbot/factory_girl/tree/master
|
37
44
|
|
45
|
+
|
46
|
+
Contributing
|
47
|
+
------------
|
48
|
+
|
49
|
+
Please see CONTRIBUTING.md for details.
|
50
|
+
|
38
51
|
Credits
|
39
52
|
-------
|
40
53
|
|
41
|
-
factory_girl was originally written by Joe Ferris
|
54
|
+
factory_girl was originally written by Joe Ferris.
|
42
55
|
|
43
56
|
![thoughtbot](http://thoughtbot.com/images/tm/logo.png)
|
44
57
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: factory_girl_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.2.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Joe Ferris
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-09-02 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 2.
|
35
|
+
version: 2.1.0
|
36
36
|
type: :runtime
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
|
104
104
|
files:
|
105
|
+
- CONTRIBUTING.md
|
105
106
|
- Gemfile
|
106
107
|
- Gemfile.lock
|
107
108
|
- LICENSE
|