Skip to content
This repository was archived by the owner on May 1, 2018. It is now read-only.

hw2 superedriver#33

Open
superedriver wants to merge 11 commits into
denysxftr:masterfrom
superedriver:master
Open

hw2 superedriver#33
superedriver wants to merge 11 commits into
denysxftr:masterfrom
superedriver:master

Conversation

@superedriver
Copy link
Copy Markdown

No description provided.

@denysxftr
Copy link
Copy Markdown
Owner

but this solution is hardcoded
plz try to make it work with routes like /any/path/:with/any/:parameters

@superedriver
Copy link
Copy Markdown
Author

superedriver commented Nov 14, 2016

Nothing was said in task about solution has to be "hardcoded" or not.
Or I didn't understand the task properly.
I've remade it for routes routes like /any/path/:with/any/:parameters

@denysxftr
Copy link
Copy Markdown
Owner

nice

expect(subject.call(env)).to eq [200, {}, ['post show page']]
end

it 'not matches request if deep nested post url' do
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

does not match

@denysxftr
Copy link
Copy Markdown
Owner

looks good to me


it 'successfully responds' do
expect(subject)
.to eq([200, {"Content-Type"=>"text/plain"}, ["{\"a\"=>\"b\", \"e\"=>\"r\"}"]])
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

@denysxftr
Copy link
Copy Markdown
Owner

nice
@tilast check plz hw4

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.

2 participants