Sha256: 0e89fdc862a74f98c9305621d61b60e962b9ca104f5ca4aa00cc6a33d12c0c7b

Contents?: true

Size: 355 Bytes

Versions: 10

Compression:

Stored size: 355 Bytes

Contents

require 'spec_helper'

describe LHC do
  context 'request' do
    it "is able to call .request without LHC raising NoMethodError: undefined method `blank?' for nil:NilClass when calling it outside of the rails context" do
      expect { LHC.request(url: "http://datastore/v2/feedbacks", method: :get) }.not_to raise_error(NoMethodError)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lhc-8.0.0 spec/basic_methods/request_without_rails_spec.rb
lhc-7.3.2 spec/basic_methods/request_without_rails_spec.rb
lhc-7.3.1 spec/basic_methods/request_without_rails_spec.rb
lhc-7.3.0 spec/basic_methods/request_without_rails_spec.rb
lhc-7.2.0 spec/basic_methods/request_without_rails_spec.rb
lhc-7.1.0 spec/basic_methods/request_without_rails_spec.rb
lhc-7.0.1 spec/basic_methods/request_without_rails_spec.rb
lhc-7.0.0 spec/basic_methods/request_without_rails_spec.rb
lhc-7.0.0.beta1 spec/basic_methods/request_without_rails_spec.rb
lhc-6.7.2 spec/basic_methods/request_without_rails_spec.rb