-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract modules and extend spec coverage (#35)
* require coverage before interactify * update appraisals gemfile lock files * add specs for whole integration app * add Interactify::Wiring::ErrorContext spec * add Interactify::Hooks spec * fix namespacing * satisfy rubocop * add coverage badge
- Loading branch information
Showing
19 changed files
with
257 additions
and
196 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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -52,5 +52,3 @@ def sidekiq? | |
rescue LoadError | ||
Interactify.railties_missing! | ||
end | ||
|
||
|
File renamed without changes.
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
60 changes: 31 additions & 29 deletions
60
spec/fixtures/integration_app/app/interactors/if/organizer.rb
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 |
---|---|---|
@@ -1,40 +1,42 @@ | ||
module If | ||
class Anyways | ||
include Interactify | ||
module Organizer | ||
class Anyways | ||
include Interactify | ||
|
||
expect :blah, filled: false | ||
|
||
def call | ||
context.anyways = blah | ||
expect :blah, filled: false | ||
|
||
def call | ||
context.anyways = blah | ||
end | ||
end | ||
end | ||
|
||
class MethodSyntaxOrganizer | ||
include Interactify | ||
expect :blah, filled: false | ||
class MethodSyntaxOrganizer | ||
include Interactify | ||
expect :blah, filled: false | ||
|
||
organize \ | ||
self.if(:blah, [A, B], [C, D]), | ||
Anyways | ||
end | ||
organize \ | ||
self.if(:blah, [A, B], [C, D]), | ||
Anyways | ||
end | ||
|
||
class AlternativeMethodSyntaxOrganizer | ||
include Interactify | ||
expect :blah, filled: false | ||
class AlternativeMethodSyntaxOrganizer | ||
include Interactify | ||
expect :blah, filled: false | ||
|
||
organize( | ||
self.if(:blah, then: [A, B], else: [C, D]), | ||
Anyways | ||
) | ||
end | ||
organize( | ||
self.if(:blah, then: [A, B], else: [C, D]), | ||
Anyways | ||
) | ||
end | ||
|
||
class HashSyntaxOrganizer | ||
include Interactify | ||
expect :blah, filled: false | ||
class HashSyntaxOrganizer | ||
include Interactify | ||
expect :blah, filled: false | ||
|
||
organize( | ||
{if: :blah, then: [A, B], else: [C, D]}, | ||
Anyways | ||
) | ||
organize( | ||
{ if: :blah, then: [A, B], else: [C, D] }, | ||
Anyways | ||
) | ||
end | ||
end | ||
end |
4 changes: 2 additions & 2 deletions
4
spec/fixtures/integration_app/app/interactors/organizing/organized2.rb
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
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
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
Oops, something went wrong.