Class: Unfuzzle::PriorityTest

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/unfuzzle/test/unit/unfuzzle/priority_test.rb

Class Method Summary collapse

Class Method Details

.should_have_a_name_of(name, options) ⇒ Object



6
7
8
9
10
11
# File 'lib/unfuzzle/test/unit/unfuzzle/priority_test.rb', line 6

def self.should_have_a_name_of(name, options)
  should "have a name of '#{name}' when the priority is #{options[:when]}" do
    p = Priority.new(options[:when])
    p.name.should == name
  end
end