Sha256: 2d3df57514fdb3b3d0e2fc551a92fb5cc954addd19ce9e14b3462a7729282c2f
Contents?: true
Size: 541 Bytes
Versions: 1
Compression:
Stored size: 541 Bytes
Contents
require 'test_helper' class MusiciansController < ApplicationController end class UrlHelperTest < MiniTest::Spec include Cell::Testing controller MusiciansController class Cell < Cell::ViewModel def show url_for(model) end def default_url_options {host: "rails.sucks"} end end let (:song_cell) { Cell.new(Song.new, controller: controller) } # path helpers work in cell instance. it { song_cell.songs_path.must_equal "/songs" } it { song_cell.().must_equal "http://rails.sucks/songs/1" } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cells-4.0.0.beta6 | test/rails4.2/test/integration/url_helper_test.rb |