Sha256: d37fa71d79695df43038f74a4813c9c2f930e01cbca9d5da3a77097779ee131d
Contents?: true
Size: 1.18 KB
Versions: 12
Compression:
Stored size: 1.18 KB
Contents
require 'spec_helper' describe Rubix::Connection do before do integration_test end after do truncate_all_tables end it "can perform an authorized GET request to the homepage" do response = Rubix.connection.web_request("GET", "/") response.should_not be_nil response.code.to_i.should == 200 response.body.should_not include('guest') response.body.should include(Rubix::IntegrationHelper::INTEGRATION_USER) end it "can perform an authorized POST request to the homepage" do response = Rubix.connection.web_request("POST", "/", :foo => 'bar', :baz => 'buzz') response.should_not be_nil response.code.to_i.should == 200 response.body.should_not include('guest') response.body.should include(Rubix::IntegrationHelper::INTEGRATION_USER) end it "can perform an authorized multipart POST request to the homepage" do response = Rubix.connection.web_request("POST", "/", :foo => File.new(data_path('test_template.xml'))) response.should_not be_nil response.code.to_i.should == 200 response.body.should_not include('guest') response.body.should include(Rubix::IntegrationHelper::INTEGRATION_USER) end end
Version data entries
12 entries across 12 versions & 1 rubygems