This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Shared stuff for logging in | |
RSpec.shared_context 'logged in user' do | |
before do | |
visit '/login' | |
fill_in 'username', with: 'test_user' | |
fill_in 'password', with: 'test_password' | |
click_button 'Login' | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test Task: Bookstore Rails Application | |
Objective: | |
Develop a Rails web application for a bookstore. | |
Requirements: | |
Models: | |
Create the following models with the specified fields and associations: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ScraperDSL | |
attr_accessor :name, :home_url, :jobs_url, :structure | |
def initialize(name) | |
@name = name | |
@structure = ScraperStructure.new | |
end | |
def home_url(url) | |
@home_url = url |
OlderNewer