mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-23 18:26:21 -05:00
18 lines
337 B
Ruby
18 lines
337 B
Ruby
require 'spec_helper'
|
|
|
|
describe ShopController do
|
|
|
|
before :each do
|
|
@product1 = FactoryGirl.create(:product)
|
|
@product2 = FactoryGirl.create(:product)
|
|
end
|
|
|
|
describe "GET index" do
|
|
it "assigns all products as @products" do
|
|
get :index, {}
|
|
assigns(:products).should eq([@product1, @product2])
|
|
end
|
|
end
|
|
|
|
end
|