Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## permute.rb
- class Permuter
- def shuffle(word)
- word
- end
- end
- ## permute_rspec.rb
- require 'permute'
- describe Permuter do
- before do
- @permuter = Permuter.new
- end
- it "should instantiate" do
- @permuter.class.should equal(Permuter)
- end
- it "should generate a shuffled string" do
- @permuter.shuffle("cat").should_not equal("cat")
- end
- end
Add Comment
Please, Sign In to add comment