Sha256: ed83e7ff63bc4ba8c1838835e6fd428a1084c20f2c259ed4ed8fef1a8399bce0
Contents?: true
Size: 759 Bytes
Versions: 3
Compression:
Stored size: 759 Bytes
Contents
require "test_helper" require "generators/bbq/test_generator" class BbqTestGeneratorTest < ::Rails::Generators::TestCase destination Bbq.root.join("tmp") setup :prepare_destination tests Bbq::TestGenerator def test_creating_test_unit_feature_file run_generator %w(MySuperThing -t test_unit) assert_file "test/acceptance/my_super_thing_test.rb", /class MySuperThingTest < Bbq::TestCase/ assert_file "test/acceptance/my_super_thing_test.rb", /require "test_helper"/ end def test_creating_rspec_feature_file run_generator %w(MySuperThing -t rspec) assert_file "spec/acceptance/my_super_thing_spec.rb", /feature "My super thing" do/ assert_file "spec/acceptance/my_super_thing_spec.rb", /require "spec_helper"/ end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.2.1 | test/unit/bbq_test_generator_test.rb |
bbq-0.2.0 | test/unit/bbq_test_generator_test.rb |
bbq-0.1.0 | test/unit/bbq_test_generator_test.rb |