Sha256: 266e22b1abb714d94db4b8034555ef1ec45d5ac84e56f3ac1d5d3f3fc695f134

Contents?: true

Size: 400 Bytes

Versions: 9

Compression:

Stored size: 400 Bytes

Contents

# see https://github.com/tengine/fontana/pull/3
require 'httpclient'
def request_fixture_load(fixture_name)
  c = HTTPClient.new
  res = c.post("http://localhost:4000/libgss_test/fixture_loadings/#{fixture_name}.json", "_method" => "put")
  raise "#{res.code} #{res.http_body.content}" unless res.code.to_s =~ /\A2\d\d\Z/
end

def fixtures(name)
  before do
    request_fixture_load(name)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
libgss-0.11.0 spec/support/auto/fixtures.rb
libgss-0.10.0 spec/support/auto/fixtures.rb
libgss-0.9.0 spec/support/auto/fixtures.rb
libgss-0.8.4 spec/support/auto/fixtures.rb
libgss-0.8.3 spec/support/auto/fixtures.rb
libgss-0.8.2 spec/support/auto/fixtures.rb
libgss-0.8.1 spec/support/auto/fixtures.rb
libgss-0.8.0 spec/support/auto/fixtures.rb
libgss-0.7.6 spec/support/auto/fixtures.rb