Sha256: f5c495bfb874bed5182ecc0e19602d0aaaf49070aed6606e04f6a1a4322b7f63
Contents?: true
Size: 590 Bytes
Versions: 1
Compression:
Stored size: 590 Bytes
Contents
require 'test_helper' class BuildybuildActiveLinkGeneratorTest < Rails::Generators::TestCase tests Buildybuild::ActiveLinkGenerator destination File.expand_path("../../../../tmp", File.dirname(__FILE__)) setup :prepare_destination test "ApplicationHelper is updated" do #create the file in the test so we can insert into it. generator.create_file("app/helpers/application_helper.rb", "module ApplicationHelper \n\nend") generator.add_active_link_helper assert_file "app/helpers/application_helper.rb", / def active_link_to\(text, path, options=\{\}\)/ end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
buildybuild-1.1.0 | test/generators/buildybuild/active_link/active_link_generator_test.rb |