OSDN Git Service

t#30200:update i18n devise
[pettanr/pettanr.git] / spec / controllers / license_groups_controller_spec.rb
index 05da3ad..994829c 100644 (file)
@@ -6,6 +6,7 @@ describe LicenseGroupsController do
   before do
     @admin = FactoryGirl.create :admin
     @user = FactoryGirl.create( :user_yas)
+    @author = FactoryGirl.create :author, :user_id => @user.id
     @sp = FactoryGirl.create :system_picture
     @lg = FactoryGirl.create :license_group, :name => 'peta'
     @license = FactoryGirl.create :license, :license_group_id => @lg.id, :system_picture_id => @sp.id
@@ -108,8 +109,8 @@ describe LicenseGroupsController do
           json = JSON.parse response.body
           json["name"].should match(/peta/)
           json["classname"].should_not be_nil
-          json["caption"].should_not be_nil\r
-          json["url"].should_not be_nil\r
+          json["caption"].should_not be_nil
+          json["url"].should_not be_nil
         end
       end
     end