Skip to content
Browse files

Some minor tweaks: removing debugs and comments.

  • Loading branch information...
1 parent 03ac28a commit a28839233eb23f5e5e377e52677d71500651e403 @bguthrie bguthrie committed
View
4 app/views/layouts/application.html.haml
@@ -7,7 +7,7 @@
- if browser.ie?
%link{:href => "/assets/application_ie.css", :media => "screen", :rel => "stylesheet", :type => "text/css"}
- else
- = stylesheet_link_tag :application, :debug => false
+ = stylesheet_link_tag :application
%title= content_for?(:title) ? yield(:title) : @title
= csrf_meta_tags
= yield :meta_tags
@@ -37,6 +37,6 @@
- org_name = AppSettings.require_keys!('organization.name')
© 2013 #{org_name} (<a href="#{@contact_url}">contact us</a>)
- = javascript_include_tag :application, :debug => false
+ = javascript_include_tag :application
%script{type: "text/javascript"}
= yield :javascripts
View
2 spec/controllers/petitions_controller_spec.rb
@@ -240,7 +240,7 @@ def valid_attributes
end
describe "the newly created petition" do
subject { assigns(:petition) }
- it { response.inspect; should be_persisted }
+ it { should be_persisted }
it { should be_a(Petition) }
its(:owner) { should == @logged_in_user}
end
View
18 spec/controllers/users_controller_spec.rb
@@ -1,12 +1,12 @@
describe UsersController do
-
- # describe "GET new" do
- # it "assigns a new user" do
- # get :new
- # assigns(:user).should be_a_new(User)
- # end
- # end
-
+
+ describe "GET new" do
+ it "assigns a new user" do
+ get :new
+ assigns(:user).should be_a_new(User)
+ end
+ end
+
describe "Sign up new user" do
it "logs the user in after signing up" do
post :create, {:user => {:email => "me@my.com", :password => "password", :password_confirmation => "password"}}
@@ -14,7 +14,7 @@
session[:user_id].should eq new_user.id
end
end
-
+
describe "PUT update" do
let(:user){ create(:user) }
describe "with valid params" do

0 comments on commit a288392

Please sign in to comment.
Something went wrong with that request. Please try again.