Sha256: b4abe687884d1e70cb2fef0ebe4e2bf370c4f681c51bc27ba421e4169f45bd0a

Contents?: true

Size: 869 Bytes

Versions: 3

Compression:

Stored size: 869 Bytes

Contents

require "test/helper"
require "test/app_helper"
require 'open4'
require 'rest_client'

module Osheet
  class RailsTwoTest < Test::Unit::TestCase
    include RailsTestHelpers

    before_once do
      test_rails_app :two, :start, 'localhost', 3002
    end
    after_once do
      test_rails_app :two, :stop, 'localhost', 3002
    end

    should "respond with osheet data" do
      assert_osheet_data 'rails two', RestClient.get("http://localhost:3002/things.xls")
    end

  end

  class RailsThreeTest < Test::Unit::TestCase
    include RailsTestHelpers

    before_once do
      test_rails_app :three, :start, 'localhost', 3003
    end
    after_once do
      test_rails_app :three, :stop, 'localhost', 3003
    end

    should "respond with osheet data" do
      assert_osheet_data 'rails three', RestClient.get("http://localhost:3003/things.xls")
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
osheet-0.7.0 test/rails_test.rb
osheet-0.6.0 test/rails_test.rb
osheet-0.5.0 test/rails_test.rb