Compare commits

..

No commits in common. "94026bdad24fb93d32550ce9f2a0f57e565dc499" and "a34b788ff4bf0930a3a8ca255f591a7ba4f2bfa7" have entirely different histories.

4 changed files with 6 additions and 17 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
*.sw*

View File

@ -4,8 +4,6 @@ Feature: Homepage
Loading the homepage is the initial starting point for this tool
Scenario: Homepage Loads with a form
Scenario: Homepage Loads
Given I visit the homepage
Then I should see text "URL Shortener"
And I should see a form field "url"
And I should see a "Submit" button
Then I should see "URL Shortener"

View File

@ -1,7 +1,7 @@
# GIVEN
Given('I visit the homepage') do
visit '/'
visit '/'
end
# WHEN
@ -10,14 +10,6 @@ end
# THEN
Then('I should see text {string}') do |string|
page.should have_content string
end
Then('I should see a form field {string}') do |string|
page.should have_field string
end
Then('I should see a {string} button') do |string|
page.should have_button string
Then('I should see {string}') do |string|
page.should have_content "URL Shortener"
end

View File

@ -5,5 +5,5 @@
placeholder="http://www.example.com/"
style="padding: 0.5rem;"
required />
<button type="submit" style="padding: 0.5rem;">Submit</button>
<input type="submit" value="Submit" style="padding: 0.5rem;" />
</form>