jbuilder_rspec_generator 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/jbuilder_rspec_generator.gemspec +2 -2
- data/lib/generators/rspec/templates/index_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a97987228c368c03c270552f3b3f3643c3a35fb4
|
4
|
+
data.tar.gz: 7c799f095e710d61219f74e2697a6318688a9c0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba4eadaa127bda941d629f59f54d39d7b31e364bd8ee6ce2dc5919ab32dcd64417825551f5d6fac7abce3f6040de34f1f387fdd332c83274accfbadc419e6848
|
7
|
+
data.tar.gz: 66788b4181cc654f0496a9ce8e37cff05943916ba8efd74e21d182c98c01f9560505831254e511ca3d059b8a12ad9d8ba17ebd13d36180cce1c680b768cca3a1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: jbuilder_rspec_generator 1.0.
|
5
|
+
# stub: jbuilder_rspec_generator 1.0.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "jbuilder_rspec_generator"
|
9
|
-
s.version = "1.0.
|
9
|
+
s.version = "1.0.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
@@ -35,7 +35,7 @@ describe "<%= ns_table_name %>/index.json.jbuilder", type: :view do
|
|
35
35
|
hash = MultiJson.load rendered
|
36
36
|
expect(hash.first).to eq(hash = hash.last)
|
37
37
|
expect(hash.keys.sort).to eq attributes.sort
|
38
|
-
expected = MultiJson.load MultiJson.dump
|
38
|
+
expected = MultiJson.load MultiJson.dump @<%= ns_file_name %>.attributes.slice *attributes
|
39
39
|
expected['url'] = <%= ns_file_name %>_url(@<%= ns_file_name %>, format: 'json')
|
40
40
|
expect(hash).to eq expected
|
41
41
|
<% for attribute in attributes -%>
|