Guest User

Untitled

a guest
Mar 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. ## permute.rb
  2. class Permuter
  3. def shuffle(word)
  4. word
  5. end
  6. end
  7.  
  8. ## permute_rspec.rb
  9. require 'permute'
  10.  
  11. describe Permuter do
  12. before do
  13. @permuter = Permuter.new
  14. end
  15.  
  16. it "should instantiate" do
  17. @permuter.class.should equal(Permuter)
  18. end
  19.  
  20. it "should generate a shuffled string" do
  21. @permuter.shuffle("cat").should_not equal("cat")
  22. end
  23. end
Add Comment
Please, Sign In to add comment