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/move receipt routes #147

Merged
merged 6 commits into from
Dec 15, 2016
Merged

Feature/move receipt routes #147

merged 6 commits into from
Dec 15, 2016

Conversation

danReynolds
Copy link
Owner

No description provided.


context 'without an existing item' do
it 'should create the item and add it to the grocery list with the correct price' do
name = 'Bacon'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

end

context 'without an existing item' do
it 'should create the item and add it to the grocery list with the correct price' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Line is too long. [90/80]

end
end

context 'without an existing item' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

end

context 'with the item not on the grocery list' do
it 'should add the item to the list with the correct price' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

end
end

context 'with the item not on the grocery list' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

let(:name) { 'Bacon' }
let(:item) { create(:item, name: name) }
context 'with the item on the grocery list' do
it 'should set the price of the item to the match price' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

context 'with an existing item' do
let(:name) { 'Bacon' }
let(:item) { create(:item, name: name) }
context 'with the item on the grocery list' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

end

context 'with an existing item' do
let(:name) { 'Bacon' }
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

}.with_indifferent_access)
end

context 'with an existing item' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

{
matches: [
{
name: 'Bacon',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

end
end

describe 'POST confirm' do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

expect(results['total']).to eq 10.40
expect(results['matches'].map! { |match| match.slice('name', 'price') }).to eq expected_matches
expect(matches['total']).to eq 10.40
expect(matches['list'].map! { |match| match.slice('name', 'price') }).to eq expected_matches
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Line is too long. [100/80]


expect(results['total']).to eq 10.40
expect(results['matches'].map! { |match| match.slice('name', 'price') }).to eq expected_matches
expect(matches['total']).to eq 10.40
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

expect(results['total']).to eq 44.45
expect(results['matches'].map! { |match| match.slice('name', 'price') }).to eq expected_matches
expect(matches['total']).to eq 44.45
expect(matches['list'].map! { |match| match.slice('name', 'price') }).to eq expected_matches
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Line is too long. [100/80]


expect(results['total']).to eq 44.45
expect(results['matches'].map! { |match| match.slice('name', 'price') }).to eq expected_matches
expect(matches['total']).to eq 44.45
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

expect(results['total']).to eq 0
expect(results['matches'].map! { |match| match.slice('name', 'price', 'new') }).to eq expected_matches
expect(matches['total']).to eq 0
expect(matches['list'].map! { |match| match.slice('name', 'price', 'new') }).to eq expected_matches
Copy link
Collaborator

Choose a reason for hiding this comment

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

Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Line is too long. [107/80]

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 97.907% when pulling 274fed5 on feature/moveReceiptRoutes into 8b5fc5e on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 97.907% when pulling 4976f2d on feature/moveReceiptRoutes into 8b5fc5e on master.

@danReynolds danReynolds merged commit 9336584 into master Dec 15, 2016
@danReynolds danReynolds deleted the feature/moveReceiptRoutes branch December 15, 2016 06:09
danReynolds added a commit that referenced this pull request May 19, 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

3 participants