Created
January 20, 2009 23:38
-
-
Save cawel/49745 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'sinatra' | |
require 'sinatra/test/rspec' | |
require File.join(File.dirname(__FILE__), '../../server.rb') | |
Dir.chdir('../../') | |
describe 'Game logic' do | |
it 'should be able to play in 0,0' do | |
get '/new' #this route assigns data in session | |
post '/play', :x => 0, :y => 0 #this route cannot retrieve data from session | |
@response.should be_ok | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment