Sha256: 564108e28049a744aab2cd20ee68bef8418c20a122135ee9f70db7cbae73e4a3
Contents?: true
Size: 946 Bytes
Versions: 1
Compression:
Stored size: 946 Bytes
Contents
module ApplicationTests class RouterTest < ActionController::TestCase#Test::Unit::TestCase tests MusicianController context "A Rails app" do should "allow cells to use url_helpers" do BassistCell.class_eval do def promote; render; end end #assert ::Cell::Rails.view_context_class._routes, "Cells::Railtie initializer wasn't invoked." #assert ! ::OmgController.new.respond_to?( :render_cell) get "index" assert_response :success assert_equal "Find me at <a href=\"/musician\">vd.com</a>", @response.body end should "allow cells to use #config" do BassistCell.class_eval do def provoke; render; end end get "promotion" assert_response :success assert_equal "That's me, naked <img alt=\"Me\" src=\"/images/me.png\" />", @response.body end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cells-3.4.0.beta3 | test/rails/router_test.rb |