Created
September 26, 2011 20:44
-
-
Save docwhat/1243341 to your computer and use it in GitHub Desktop.
creates problem.
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
diff --git a/spec/rspec-apotomo/widget_example_group_spec.rb b/spec/rspec-apotomo/widget_example_group_spec.rb | |
index 9390bcc..95dc5eb 100644 | |
--- a/spec/rspec-apotomo/widget_example_group_spec.rb | |
+++ b/spec/rspec-apotomo/widget_example_group_spec.rb | |
@@ -5,6 +5,10 @@ require 'rspec/rails/example/widget_example_group' | |
# This class is used as a dummy widget for testing | |
class DummyWidget < Apotomo::Widget | |
responds_to_event :doo | |
+ | |
+ def display | |
+ render | |
+ end | |
end | |
module RSpec::Rails | |
@@ -25,6 +29,16 @@ module RSpec::Rails | |
# the rails rspec would include it automagically. | |
include WidgetExampleGroup | |
+ context "light-weight integration tests" do | |
+ has_widgets do |root| | |
+ root << widget(:dummy) | |
+ end | |
+ | |
+ it "should work end-to-end" do | |
+ render_widget(:dummy).should be | |
+ end | |
+ end | |
+ | |
context "- ::has_widget" do | |
has_widgets do |root| | |
root << widget(:dummy) | |
@@ -68,7 +82,9 @@ module RSpec::Rails | |
root << widget(:dummy) | |
end | |
- pending "gets the widget controller variables" | |
+ it "gets the widget controller variables" do | |
+ | |
+ end | |
pending "sets the widget view variables" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment