Skip to content

Commit

Permalink
install generator_spec gem
Browse files Browse the repository at this point in the history
Signed-off-by: Oliver Stigley <oliver@boost.co.nz>
  • Loading branch information
Oliver Stigley committed Sep 14, 2018
1 parent c8883c6 commit 49a458f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ spec/dummy/.sass-cache
spec/dummy/.ruby-version
spec/dummy/solr/pids
spec/dummy/solr/data
spec/lib/generators/supplejack_api/tmp/
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ gem 'xml_spec', git: 'https://github.com/boost/xml_spec', require: false
group :test do
gem 'faker'
gem 'json-schema'
gem 'generator_spec'
end
6 changes: 5 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ GEM
thor (~> 0.14)
fssm (0.2.10)
gabba (1.0.1)
generator_spec (0.9.4)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
gherkin (4.1.3)
globalid (0.4.1)
activesupport (>= 4.2.0)
Expand Down Expand Up @@ -513,6 +516,7 @@ DEPENDENCIES
dimensions
factory_bot_rails
faker
generator_spec
jquery-rails
json-schema
json_spec
Expand All @@ -538,4 +542,4 @@ DEPENDENCIES
yard

BUNDLED WITH
1.16.0
1.16.4
23 changes: 23 additions & 0 deletions spec/lib/generators/supplejack_api/install_generator_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
require 'spec_helper'
require 'generator_spec'

module SupplejackApi
module Generators
describe InstallGenerator, type: :generator do
destination File.expand_path("../tmp/", __FILE__)

before(:all) do
prepare_destination
run_generator
end

describe '#config files' do
let(:generated_application_yml) { File.read(destination)}
it 'adds details to application yml' do
binding.pry
expect(true).to be true
end
end
end
end
end

0 comments on commit 49a458f

Please sign in to comment.