[Rails] Rspec testing in rails3

2014-04-26 Thread ruby rails
Hi, I have a Queues controller and and QueueItems controller in my rails application. In routes I have defined as below `match 'queues/:queue_id/next', :to=> 'queueitems#next'` In my QueueItems Controller I have a next action and it assigns an instance variable. def next @queue = "Regular

[Rails] Rspec testing in rails3

2014-04-26 Thread ruby rails
Hi, I have a Queues controller and and QueueItems controller in my rails application. In routes I have defined as below `match 'queues/:queue_id/next', :to=> 'queueitems#next'` In my QueueItems Controller I have a next action and it assigns an instance variable. def next @queue = "Regular