root/spec/includes/helpers/admin_ticket_propery_values_controller_include.rb

Download in other formats: Raw | Text
Revisions
Dimitrij Denissenko
Dimitrij Denissenko
May 10 2009 * 12:07
(over 1 year ago)

Revision d3d17eeecde2dfd3942539f0ff23974cf9cb48ea

Added XML-API for projects / Simplified code/specs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module AdminTicketProperyValuesControllerInclude

  def it_should_find_the_related_project(method = :do_get)
    Project.should_receive(:find_by_short_name!).and_return(@project)
    send(method)
    assigns[:project].should == @project
  end
  
  def it_should_find_the_property_type(method = :do_get)
    @property_types.should_receive(:find).with('1', :include=>[:ticket_properties]).and_return(@property_type)
    send(method)
    assigns[:property_type].should == @property_type
  end  

end