Sha256: 7822c446537a0300ff3d9fe354c11e0f1b3146e76daca660277321298d8e10d2
Contents?: true
Size: 784 Bytes
Versions: 54
Compression:
Stored size: 784 Bytes
Contents
require File.dirname(__FILE__) + '/../integration_helper' describe Locomotive::Steam::Server do include Rack::Test::Methods def app run_server end describe 'session' do subject { get '/contest'; last_response.body } it 'displays code for the first time' do is_expected.to include 'Your code is: HELLO WORLD' is_expected.not_to include "You've already participated to that contest ! Come back later." end describe 'assign tag' do subject { 2.times { get '/contest' }; last_response.body } it 'does not display code if second time' do is_expected.not_to include 'Your code is: HELLO WORLD' is_expected.to include "You've already participated to that contest ! Come back later." end end end end
Version data entries
54 entries across 54 versions & 1 rubygems