Sha256: 0602ead4d005f953368e1e2d14a73afe0335f520db6c834d7070f6f69cf01a35
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
require 'test_helper' require 'generators/rspec/interaction_generator' class InteractionSpecGeneratorTest < Rails::Generators::TestCase tests Rspec::InteractionGenerator destination File.expand_path("../../tmp/spec", File.dirname(__FILE__)) setup :prepare_destination def test_spec_file_generation run_generator %w(Users::Create --requirements params --fail_with ErrorClass) assert_file "spec/interactions/users/create_spec.rb" do |interaction_test| assert_match /describe Users::Create/, interaction_test end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_interaction-rails-0.0.8 | test/generators/spec/interaction_spec_generator_test.rb |
simple_interaction-rails-0.0.7 | test/generators/spec/interaction_spec_generator_test.rb |