Sha256: c517cb39c06c2e406cbbb22de9b9e0456515b15ade3182ccd7a2de0cbccf3493
Contents?: true
Size: 837 Bytes
Versions: 2
Compression:
Stored size: 837 Bytes
Contents
require "test_helper" require "rails/generators/test_case" require "generators/bbq/test_generator" class BbqTestGeneratorTest < ::Rails::Generators::TestCase destination File.expand_path(File.join(File.dirname(__FILE__), '../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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbq-rails-0.4.0 | test/bbq_test_generator_test.rb |
bbq-rails-0.3.0 | test/bbq_test_generator_test.rb |