Sha256: e5d59f14172810953ae325d3e98d4d45f70562708e4f08872e53280af1520ec1
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
require_relative "base_integration_test" include FileUtils class TestRSpec < BaseIntegrationTest test_that "we can generate an app using RSpec instead of Test::Unit" do When { optparse_plus "--rspec newgem" } Then { refute Dir.exist?("newgem/test") assert Dir.exist?("newgem/spec") assert File.exist?("newgem/spec/something_spec.rb") } And { assert_file("newgem/newgem.gemspec", contains: /add_development_dependency\(["']rspec["']/) } And { stdout,_ = rake("newgem", "-T") assert_match(/rake spec/,stdout) refute_match(/rake testa/,stdout) } When { @stdout, _ = rake("newgem","spec") } Then { assert_match(/1 example,.*0 failures/,@stdout) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
optparse-plus-3.0.1 | test/integration/test_rspec.rb |
optparse-plus-3.0.0 | test/integration/test_rspec.rb |