Sha256: 1864e46b5380a40ce06150320b1642d27167359c39f7ff450d8fb395a6252a13
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
require 'test_helper' require 'rabl/generators' class Rails::Generators::ResourceTemplateGeneratorTest < Rails::Generators::TestCase destination File.join(Rails.root) tests Rails::Generators::ResourceGenerator arguments %w(Account --actions index show) setup :prepare_destination setup :copy_routes test "should invoke template engine" do run_generator assert_file "app/views/accounts/show.rabl", %r(object @account) assert_file "app/views/accounts/index.rabl", %r(collection @accounts) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rabl-generators-0.1.0 | test/lib/generators/rabl/resource_generator_test.rb |