jbuilder_rspec_generator 1.0.0 → 1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d53c4dd57d06e4188cc9a8a3700608530bc814f2
|
4
|
+
data.tar.gz: c2d5929868b8a00000e613bcd855ae5bb9cd4cf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42b8b5a749872ac958ed6d087bf258ec1f30a40ff131591f079c438d264649433ae50fbcbb3a4bd89bfc0545e53e24e2fa551796e4e0f4e7072e5a8b72c6bdd8
|
7
|
+
data.tar.gz: 2d710f0db0618e1341cb1484ae6c4ec21ea505841011941479a22e75ebffda791a7dea88270d5d045b42f2d1e8a937063858f7e5a45f7d798f5d0148361dbab4
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
@@ -2,16 +2,16 @@
|
|
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.1 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.1"
|
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"]
|
13
13
|
s.authors = ["Dmitri Koulikoff"]
|
14
|
-
s.date = "2014-09-
|
14
|
+
s.date = "2014-09-15"
|
15
15
|
s.description = "Generates RSpecs for jbuilder templates"
|
16
16
|
s.email = "dima@koulikoff.ru"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -1,6 +1,10 @@
|
|
1
|
+
<% if File.exist?(File.join %w[spec rails_helper.rb]) -%>
|
2
|
+
require 'rails_helper'
|
3
|
+
<% else -%>
|
1
4
|
require 'spec_helper'
|
5
|
+
<% end -%>
|
2
6
|
|
3
|
-
describe "<%= ns_table_name %>/index.json.jbuilder" do
|
7
|
+
describe "<%= ns_table_name %>/index.json.jbuilder", type: :view do
|
4
8
|
before(:each) do
|
5
9
|
allow(controller).to receive(:can?).and_return(true)
|
6
10
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
|
@@ -1,6 +1,10 @@
|
|
1
|
+
<% if File.exist?(File.join %w[spec rails_helper.rb]) -%>
|
2
|
+
require 'rails_helper'
|
3
|
+
<% else -%>
|
1
4
|
require 'spec_helper'
|
5
|
+
<% end -%>
|
2
6
|
|
3
|
-
describe "<%= ns_table_name %>/show.json.jbuilder" do
|
7
|
+
describe "<%= ns_table_name %>/show.json.jbuilder", type: :view do
|
4
8
|
before(:each) do
|
5
9
|
allow(controller).to receive(:can?).and_return(true)
|
6
10
|
<% if Rails.application.config.generators.options[:rails][:fixture_replacement] == :factory_girl -%>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jbuilder_rspec_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitri Koulikoff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|