Instalação: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
Teste:
$ mongo --port 27017 --host localhost
MongoDB shell version: 2.6.6
connecting to: test
Acessar mongo shell:
Instalação: https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
Teste:
$ mongo --port 27017 --host localhost
MongoDB shell version: 2.6.6
connecting to: test
Acessar mongo shell:
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
# Model | |
expect(@user).to have(1).error_on(:username) # checks whether there is an error in username | |
expect(@user.errors[:username]).to include("can't be blank") # check for the error message | |
# Rendering | |
expect(response).to render_template(:index) | |
# Redirecting |