Sha256: fc2e8dc3dd606ac67d59d8749b4cdc10d837a6fc0b1ff21b4394a1b7e9fb23ce
Contents?: true
Size: 738 Bytes
Versions: 2
Compression:
Stored size: 738 Bytes
Contents
require 'glint' Dir[File.expand_path("../servers/*.rb", __FILE__)].each {|f| require f} require 'rspec' shared_context 'httpserver' do require 'net/http' let(:uri) { "http://#{Glint::Server.info[:httpserver][:host]}:#{Glint::Server.info[:httpserver][:port]}" } end require 'simplecov' require 'coveralls' Coveralls.wear! SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new [ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ] SimpleCov.start $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'yasuri' def compare_generated_vs_original(generated, original, uri) expected = original.scrape(uri) actual = generated.scrape(uri) expect(actual).to match expected end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yasuri-3.3.2 | spec/spec_helper.rb |
yasuri-3.3.1 | spec/spec_helper.rb |