forked from eschulte/rinari
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
422 additions
and
109 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Feature: Cells Jumps | ||
In order to quickly open a cells | ||
As a Rinari user | ||
I want to jump to it | ||
|
||
Background: | ||
Given rails application "app" | ||
And I generate scaffold for "Book" | ||
|
||
|
||
# Scenario: From cells controller | ||
# Scenario: From cells view |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Feature: Controller Jumps | ||
In order to quickly open a controller | ||
As a Rinari user | ||
I want to jump to it | ||
|
||
Background: | ||
Given rails application "app" | ||
And I generate scaffold for "Book" | ||
|
||
|
||
Scenario: From model | ||
When I visit "app/models/book.rb" | ||
And I press "C-c ; f c" | ||
Then I should be in "app/controllers/books_controller.rb" | ||
|
||
Scenario: From view | ||
When I visit "app/views/books/show.html.erb" | ||
And I press "C-c ; f c" | ||
Then I should be in "app/controllers/books_controller.rb" | ||
|
||
Scenario: From helper | ||
When I visit "app/helpers/books_helper.rb" | ||
And I press "C-c ; f c" | ||
Then I should be in "app/controllers/books_controller.rb" | ||
|
||
# Scenario: From migration | ||
# Scenario: From spec model | ||
# Scenario: From spec controller | ||
# Scenario: From spec view | ||
# Scenario: From spec fixture | ||
|
||
Scenario: From functional test | ||
When I visit "test/functional/books_controller_test.rb" | ||
And I press "C-c ; f c" | ||
Then I should be in "app/controllers/books_controller.rb" | ||
|
||
Scenario: From unit test | ||
When I visit "test/unit/book_test.rb" | ||
And I press "C-c ; f c" | ||
Then I should be in "app/controllers/books_controller.rb" | ||
|
||
Scenario: From fixture | ||
When I visit "test/fixtures/books.yml" | ||
And I press "C-c ; f c" | ||
Then I should be in "app/controllers/books_controller.rb" | ||
|
||
# Scenario: From controller to controller |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Feature: Fixture Jumps | ||
In order to quickly open a fixture | ||
As a Rinari user | ||
I want to jump to it | ||
|
||
Background: | ||
Given rails application "app" | ||
And I generate scaffold for "Book" | ||
|
||
|
||
Scenario: From model | ||
When I visit "app/models/book.rb" | ||
And I press "C-c ; f x" | ||
Then I should be in "test/fixtures/books.yml" | ||
|
||
Scenario: From controller | ||
When I visit "app/controllers/books_controller.rb" | ||
And I press "C-c ; f x" | ||
Then I should be in "test/fixtures/books.yml" | ||
|
||
Scenario: From view | ||
When I visit "app/views/books/show.html.erb" | ||
And I press "C-c ; f x" | ||
Then I should be in "test/fixtures/books.yml" | ||
|
||
Scenario: From helper | ||
When I visit "app/helpers/books_helper.rb" | ||
And I press "C-c ; f x" | ||
Then I should be in "test/fixtures/books.yml" | ||
|
||
# Scenario: From migration | ||
# Scenario: From spec model | ||
# Scenario: From spec controller | ||
# Scenario: From spec view | ||
|
||
Scenario: From functional test | ||
When I visit "test/functional/books_controller_test.rb" | ||
And I press "C-c ; f x" | ||
Then I should be in "test/fixtures/books.yml" | ||
|
||
Scenario: From unit test | ||
When I visit "test/unit/book_test.rb" | ||
And I press "C-c ; f x" | ||
Then I should be in "test/fixtures/books.yml" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Feature: Helper Jumps | ||
In order to quickly open a helper | ||
As a Rinari user | ||
I want to jump to it | ||
|
||
Background: | ||
Given rails application "app" | ||
And I generate scaffold for "Book" | ||
|
||
|
||
Scenario: From model | ||
When I visit "app/models/book.rb" | ||
And I press "C-c ; f h" | ||
Then I should be in "app/helpers/books_helper.rb" | ||
|
||
Scenario: From controller | ||
When I visit "app/controllers/books_controller.rb" | ||
And I press "C-c ; f h" | ||
Then I should be in "app/helpers/books_helper.rb" | ||
|
||
Scenario: From view | ||
When I visit "app/views/books/show.html.erb" | ||
And I press "C-c ; f h" | ||
Then I should be in "app/helpers/books_helper.rb" | ||
|
||
# Scenario: From helper # Huh? What does this do? | ||
# Scenario: From migration | ||
# Scenario: From spec model | ||
# Scenario: From spec controller | ||
# Scenario: From spec view | ||
|
||
Scenario: From functional test | ||
When I visit "test/functional/books_controller_test.rb" | ||
And I press "C-c ; f h" | ||
Then I should be in "app/helpers/books_helper.rb" | ||
|
||
Scenario: From unit test | ||
When I visit "test/unit/book_test.rb" | ||
And I press "C-c ; f h" | ||
Then I should be in "app/helpers/books_helper.rb" | ||
|
||
# Scenario: From helper to helper |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Feature: Migration Jumps | ||
In order to quickly open a migration | ||
As a Rinari user | ||
I want to jump to it | ||
|
||
Background: | ||
Given rails application "app" | ||
And I generate scaffold for "Book" | ||
|
||
|
||
# Scenario: From controller | ||
# Scenario: From view | ||
# Scenario: From helper | ||
# Scenario: From model | ||
# Scenario: From spec model | ||
# Scenario: From spec controller | ||
# Scenario: From spec view | ||
# Scenario: From functional test | ||
# Scenario: From unit test | ||
# Scenario: From migration to migration |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Feature: Model Jumps | ||
In order to quickly open a model | ||
As a Rinari user | ||
I want to jump to it | ||
|
||
Background: | ||
Given rails application "app" | ||
And I generate scaffold for "Book" | ||
|
||
|
||
Scenario: From view | ||
When I visit "app/views/books/show.html.erb" | ||
And I press "C-c ; f m" | ||
Then I should be in "app/models/book.rb" | ||
|
||
Scenario: From helper | ||
When I visit "app/helpers/books_helper.rb" | ||
And I press "C-c ; f m" | ||
Then I should be in "app/models/book.rb" | ||
|
||
# Scenario: From migration | ||
# Scenario: From spec model | ||
# Scenario: From spec controller | ||
# Scenario: From spec view | ||
# Scenario: From spec fixture | ||
|
||
Scenario: From functional test | ||
When I visit "test/functional/books_controller_test.rb" | ||
And I press "C-c ; f m" | ||
Then I should be in "app/models/book.rb" | ||
|
||
Scenario: From unit test | ||
When I visit "test/unit/book_test.rb" | ||
And I press "C-c ; f m" | ||
Then I should be in "app/models/book.rb" | ||
|
||
Scenario: From fixture | ||
When I visit "test/fixtures/books.yml" | ||
And I press "C-c ; f m" | ||
Then I should be in "app/models/book.rb" | ||
|
||
# Scenario: From model to model |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
Feature: Other Jumps | ||
In order to quickly open a Rails file | ||
As a Rinari user | ||
I want to jump to it | ||
|
||
Background: | ||
Given rails application "app" | ||
And I generate scaffold for "Book" | ||
When I visit "config/environment.rb" | ||
|
||
|
||
Scenario: To an environment | ||
Given I start an action chain | ||
When I press "C-c ; f e" | ||
And I type "development.rb" | ||
And I press "RET" | ||
And I execute the action chain | ||
Then I should be in "config/environments/development.rb" | ||
|
||
# @rails3 (Ecukes does not have tags support, yet) | ||
# Scenario: To application | ||
|
||
Scenario: To configuration | ||
Given I start an action chain | ||
When I press "C-c ; f n" | ||
And I type "routes.rb" | ||
And I press "RET" | ||
And I execute the action chain | ||
Then I should be in "config/routes.rb" | ||
|
||
# @rails2 (Ecukes does not have tags support, yet) | ||
# Scenario: To script | ||
|
||
# Scenario: To lib | ||
|
||
Scenario: To log | ||
Given I start an action chain | ||
When I press "C-c ; f o" | ||
And I type "development.log" | ||
And I press "RET" | ||
And I execute the action chain | ||
Then I should be in "log/development.log" | ||
|
||
# Scenario: To worker | ||
|
||
Scenario: To public | ||
Given I start an action chain | ||
When I press "C-c ; f p" | ||
And I type "index.html" | ||
And I press "RET" | ||
And I execute the action chain | ||
Then I should be in "public/index.html" | ||
|
||
# Scenario: To stylesheet | ||
# Scenario: To sass | ||
|
||
Scenario: To javascript | ||
Given I start an action chain | ||
When I press "C-c ; f j" | ||
And I type "application.js" | ||
And I press "RET" | ||
And I execute the action chain | ||
Then I should be in "public/javascripts/application.js" | ||
|
||
# Scenario: To plugin | ||
|
||
# @rails3 (Ecukes does not have tags support, yet) | ||
# Scenario: To mailer |
Oops, something went wrong.