include ActionView::Helpers::NumberHelper
def setup
+ super
# Create the default language for diary entries
create(:language, :code => "en")
# Stub nominatim response for diary entry locations
get :comments, :params => { :display_name => user.display_name }
assert_response :success
assert_template :comments
- assert_select "table.messages" do
+ assert_select "table.table-striped" do
assert_select "tr", :count => 1 # header, no comments
end
get :comments, :params => { :display_name => other_user.display_name }
assert_response :success
assert_template :comments
- assert_select "table.messages" do
+ assert_select "table.table-striped" do
assert_select "tr", :count => 2 # header and one comment
end