flockup /test/shoulda_macros/tab_macros.rb

Language Ruby Lines 15
MD5 Hash 0e5226433625086c866a0ab588a70729
Repository https://github.com/technicalpickles/flockup.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
Test::Unit::TestCase.class_eval do
  class << self
    def should_display_tabs
      should "display tabs" do
        assert_select ".tabs"
      end      
    end
    
    def should_have_current_tab(name)
      should "have #{name} tab selected" do
        assert_select "li.current a", name
      end
    end
  end
end
Back to Top