Sha256: 417b98e496fed5a0ada79c50499886bf9f2fd7d8c88babbe5d06984461703e91
Contents?: true
Size: 513 Bytes
Versions: 1
Compression:
Stored size: 513 Bytes
Contents
require 'test_helper' class ActsAsMonitorHelperTest < ActionView::TestCase test "monitor_tag return image" do @test_class = TestClass.new @image = image_tag("acts_as_monitor_#{@test_class.status_flag.to_s}.png" , :alt => "Click to view details") assert monitor_tag(@test_class) == @image , "fail monitor tag :#{monitor_tag(TestClass.new)}" end test "monitor_tag Rise exception" do assert_raise ActsAsMonitor::MissingMethod do monitor_tag(TestClassNoMonitor.new) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as_monitor-0.0.9 | test/acts_as_monitor_helper_test.rb |