spec/tickets_spec.rb in ticketmaster-pivotal-0.3.5 vs spec/tickets_spec.rb in ticketmaster-pivotal-0.3.6
- old
+ new
@@ -20,41 +20,41 @@
@project = @ticketmaster.project(@project_id)
@klass = TicketMaster::Provider::Pivotal::Ticket
end
it "should be able to load all tickets" do
- @project.tickets.should be_an_instance_of Array
- @project.tickets.first.should be_an_instance_of @klass
+ @project.tickets.should be_an_instance_of(Array)
+ @project.tickets.first.should be_an_instance_of(@klass)
end
it "should be able to load all tickets based on an array of ids" do
@tickets = @project.tickets([@ticket_id])
- @tickets.should be_an_instance_of Array
- @tickets.first.should be_an_instance_of @klass
+ @tickets.should be_an_instance_of(Array)
+ @tickets.first.should be_an_instance_of(@klass)
@tickets.first.id.should == @ticket_id
end
it "should be able to load all tickets based on attributes" do
@tickets = @project.tickets(:id => @ticket_id)
- @tickets.should be_an_instance_of Array
- @tickets.first.should be_an_instance_of @klass
+ @tickets.should be_an_instance_of(Array)
+ @tickets.first.should be_an_instance_of(@klass)
@tickets.first.id.should == @ticket_id
end
it "should return the ticket class" do
@project.ticket.should == @klass
end
it "should be able to load a single ticket" do
@ticket = @project.ticket(@ticket_id)
- @ticket.should be_an_instance_of @klass
+ @ticket.should be_an_instance_of(@klass)
@ticket.id.should == @ticket_id
end
it "should be able to load a single ticket based on attributes" do
@ticket = @project.ticket(:id => @ticket_id)
- @ticket.should be_an_instance_of @klass
+ @ticket.should be_an_instance_of(@klass)
@ticket.id.should == @ticket_id
end
it "should be able to update and save a ticket" do
@ticket = @project.ticket(4056827)
@@ -63,9 +63,9 @@
@ticket.save.should == true
end
it "should be able to create a ticket" do
@ticket = @project.ticket!(:title => 'Ticket #12', :description => 'Body')
- @ticket.should be_an_instance_of @klass
+ @ticket.should be_an_instance_of(@klass)
end
end