Guest User

Untitled

a guest
Feb 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. describe "base" do
  2. before(:each) do
  3. @params = {}
  4. end
  5. describe "with an id" do
  6. before(:each) do
  7. @id = 23
  8. @params[:id] = @id
  9. end
  10.  
  11. ["SmellyBums", "WorkyWeeWees"].each do |type|
  12. describe "with the type #{type}" do
  13. before(:each) do
  14. @params[:type] = type
  15. end
  16. it "should have all the params" do
  17. @params.should == {:id => 23, :type => type}
  18. end
  19. end
  20. end
  21. end
  22. end
Add Comment
Please, Sign In to add comment