Skip to content
This repository was archived by the owner on Jul 24, 2020. It is now read-only.

[1223] Expand integration test suite - #1635

Open
esoterik wants to merge 9 commits into
masterfrom
1223_expand_integration_test_suite
Open

[1223] Expand integration test suite#1635
esoterik wants to merge 9 commits into
masterfrom
1223_expand_integration_test_suite

Conversation

@esoterik

Copy link
Copy Markdown
Collaborator

This doesn't cover the full scope of the issue, but it adds more integration tests.

We should figure out which of these are necessary.

If we decide to keep deactivation integration tests, I would appreciate some help figuring out how to assert that two modals follow each other -- the tests fail right now and are commented out.

expect(page).to have_content 'Confirm Reservation Request'
end
end
end

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

these aren't necessary

renewal_days_before_due: 5 }.freeze
ATTRS.each { |attr, value| it_behaves_like 'can update', attr, value }
end
describe 'deactivation' do

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

the only specs that are worth keeping for categories / models / items are deactivation, but it's currently pretty hard to test due to how our modals work

@@ -0,0 +1,58 @@
require 'spec_helper'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

these are probably worth keeping

@@ -0,0 +1,50 @@
require 'spec_helper'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

should cross check this with the open PR for reports spec

expect(user.requirements).to include(req)
end
end
context 'reservation creation' do

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

probably just keep this spec

@@ -0,0 +1,56 @@
# frozen_string_literal: true
require 'spec_helper'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

probably worth keeping -- more complex permissions + functionality

cross check with controller / unit tests to really determine this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant