quick_shoulda 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc
CHANGED
@@ -5,6 +5,7 @@ A Rails generator which automatically generates Shoulda test cases ,
|
|
5
5
|
Just by specifying path to your model file , a bunch of Shoulda test cases will be generated for you in the correspondent spec file
|
6
6
|
|
7
7
|
== Examples :
|
8
|
+
Sample model :
|
8
9
|
|
9
10
|
app/models/user.rb
|
10
11
|
|
@@ -16,9 +17,13 @@ Just by specifying path to your model file , a bunch of Shoulda test cases will
|
|
16
17
|
has_many :comments, :through => :posts
|
17
18
|
end
|
18
19
|
|
20
|
+
Just 1 simple command
|
21
|
+
|
19
22
|
Rails generate quick_shoulda:generate app/models/user.rb
|
23
|
+
or
|
24
|
+
Rails generate quick_shoulda:g app/models/user.rb
|
20
25
|
|
21
|
-
|
26
|
+
These lines will be added to spec/models/user_spec.rb ( QuickShoulda will automatically create this file if it's not yet created )
|
22
27
|
|
23
28
|
describe 'User' do
|
24
29
|
describe '#Validations' do
|
data/Rakefile
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
require "quick_shoulda/version.rb"
|
2
3
|
|
3
4
|
task :install_mah_gem do
|
4
5
|
exec %{
|
5
6
|
gem uninstall quick_shoulda;
|
6
7
|
gem build quick_shoulda.gemspec;
|
7
|
-
gem install quick_shoulda
|
8
|
+
gem install quick_shoulda-#{QuickShoulda::VERSION}.gem; }
|
8
9
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quick_shoulda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
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: 2013-04-
|
12
|
+
date: 2013-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: debugger
|
@@ -61,7 +61,8 @@ files:
|
|
61
61
|
- README.rdoc
|
62
62
|
- Rakefile
|
63
63
|
- data/stored_strings.yml
|
64
|
-
- lib/generators/quick_shoulda/
|
64
|
+
- lib/generators/quick_shoulda/g_generator.rb
|
65
|
+
- lib/generators/quick_shoulda/generate_generator.rb
|
65
66
|
- lib/quick_shoulda.rb
|
66
67
|
- lib/quick_shoulda/errors.rb
|
67
68
|
- lib/quick_shoulda/file_writer.rb
|