Project

General

Profile

« Previous | Next » 

Revision 634c90e7

Added by Eric D. Helms over 11 years ago

Moves fixtures to be under test/fixtures instead of test/integration.

Removes 'pulp' from the name of all cassettes for consistency.

Fixes some failing tests that are due to inconsistency in to_json of
hashes by adding custom matcher for checking JSON in the body as a
hash comparison.

Adds custom matcher to test against path instead of URI to alleviate
problem with different hostnames for different developers running the
tests.

View differences:

test/integration/extensions/package_category_test.rb
def self.before_suite
@@extension = Runcible::Extensions::PackageCategory
VCR.insert_cassette('extensions/package_category', :match_requests_on => [:method, :uri, :body])
VCR.insert_cassette('extensions/package_category', :match_requests_on => [:method, :path, :params, :body_json])
RepositoryHelper.create_and_sync_repo(:importer => true)
end

Also available in: Unified diff