Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.46 KB | None | 0 0
  1. # To change this template, choose Tools | Templates
  2. # and open the template in the editor.
  3.  
  4. require 'board'
  5.  
  6. module SeniorSeminar
  7.   describe Board do
  8.     before(:each) do
  9.       @d = 6
  10.       @board = Board.new @d
  11.     end
  12.  
  13.     context "when starting a new game" do
  14.       it "should be empty" do
  15.         @board.should be_empty
  16.       end
  17.  
  18.       it "should retain its dimensions" do
  19.         @board.dimensions.should be_eql [@d,@d]
  20.       end
  21.     end
  22.   end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement