Sha256: c5a3a0c82f2cb738845c6d31a2c37052ccfda383aa1ed99db69d045b0fcfd78d
Contents?: true
Size: 1.06 KB
Versions: 11
Compression:
Stored size: 1.06 KB
Contents
module Skellington describe CLI do let :subject do described_class.new end it 'generates rspec files' do subject.generate 'dummy_app' expect('dummy_app/spec/spec_helper.rb').to have_content ( """ require 'coveralls' Coveralls.wear_merged! require 'dummy_app' RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end config.order = :random end """ ) expect('dummy_app/spec/dummy_app/dummy_app_spec.rb').to have_content ( """ module DummyApp describe App do it 'knows the truth' do expect(true).to eq true end end end """ ) expect('dummy_app/.rspec').to have_content ( """ --color --require spec_helper --format documentation """ ) end end end
Version data entries
11 entries across 11 versions & 1 rubygems