Sha256: 08e7fc45d4bb47b1e436693aa14b99de0b41a6ff309114a857b6d2d886751a4b
Contents?: true
Size: 1009 Bytes
Versions: 2
Compression:
Stored size: 1009 Bytes
Contents
require "test_helper" require "generators/bbq/install_generator" class BbqInstallGeneratorTest < Rails::Generators::TestCase destination Bbq.root.join("tmp") setup :prepare_destination tests Bbq::InstallGenerator def test_creating_test_unit_test_directories run_generator %w(-t test_unit) assert_directory "test/acceptance" assert_directory "test/support" end def test_creating_rspec_test_directories run_generator %w(-t rspec) assert_directory "spec/acceptance" assert_directory "spec/support" end def test_creating_test_unit_test_user_stub run_generator %w(-t test_unit) assert_file "test/support/test_user.rb", /class TestUser < Bbq::TestUser/ assert_file "test/support/test_user.rb", /require "test_helper"/ end def test_creating_rspec_test_user_stub run_generator %w(-t rspec) assert_file "spec/support/test_user.rb", /class TestUser < Bbq::TestUser/ assert_file "spec/support/test_user.rb", /require "spec_helper"/ end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bbq-0.0.2.beta.2 | test/unit/bbq_install_generator_test.rb |
bbq-0.0.2.beta.1 | test/unit/bbq_install_generator_test.rb |