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

Version Path
locomotivecms_steam-1.8.0.alpha2 spec/integration/server/session_spec.rb
locomotivecms_steam-1.8.0.alpha1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.7.1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.7.0 spec/integration/server/session_spec.rb
locomotivecms_steam-1.6.1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.6.0 spec/integration/server/session_spec.rb
locomotivecms_steam-1.6.0.rc1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.6.0.beta1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.3 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.2 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.0 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.0.rc1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.0.rc0 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.0.beta3 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.0.beta2 spec/integration/server/session_spec.rb
locomotivecms_steam-1.5.0.beta1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.4.1 spec/integration/server/session_spec.rb
locomotivecms_steam-1.4.0 spec/integration/server/session_spec.rb
locomotivecms_steam-1.4.0.rc2 spec/integration/server/session_spec.rb