Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/improve tests #45

Merged
merged 69 commits into from Nov 3, 2017
Merged

Feature/improve tests #45

merged 69 commits into from Nov 3, 2017

Conversation

ericgriffis
Copy link
Contributor

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.9%) to 97.724% when pulling 31e58f4 on feature/improve_tests into fefc430 on master.

require 'spec_helper'
require 'rspec/rails'
require 'rspec-html-matchers'
require 'support/shared_examples/bad_request_for_all_formats'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericgriffis do a glob require for all files in support/

RSpec.shared_examples "bad_request for all to_format" do |from_format|
context "to openurl" do
let(:to_format){ "openurl" }
its(:status) { is_expected.to eq 400 }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericgriffis Use a constant for BAD_REQUEST

@hab278 hab278 merged commit 7aa9ed1 into master Nov 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants