Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe "base" do
- before(:each) do
- @params = {}
- end
- describe "with an id" do
- before(:each) do
- @id = 23
- @params[:id] = @id
- end
- ["SmellyBums", "WorkyWeeWees"].each do |type|
- describe "with the type #{type}" do
- before(:each) do
- @params[:type] = type
- end
- it "should have all the params" do
- @params.should == {:id => 23, :type => type}
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment