Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

+ view specs

  • Loading branch information...
commit 89c9d99c98accbb351628a59237c4de5b426b75a 1 parent 27ce91f
@floere authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 gem/spec/rails2/lib/view_models/view_spec.rb
View
7 gem/spec/rails2/lib/view_models/view_spec.rb
@@ -2,6 +2,11 @@
describe ViewModels::View do
-
+ it "should be initializable" do
+ controller_class = stub :controller_class, :view_paths => ActionView::PathSet.new
+ controller = stub :controller, :class => controller_class
+
+ ViewModels::View.new controller, Module.new
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.