Skip to content

Commit

Permalink
[ci] Switched to icons feature spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Moises Deniz Aleman committed Feb 24, 2016
1 parent 6abe8e3 commit f9accaf
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/api/spec/features/webui/users/users_icons_spec.rb
@@ -0,0 +1,19 @@
require "browser_helper"

RSpec.feature "User's icons", type: :feature, js: true do
let(:user) { create(:confirmed_user, login: 'moi') }

scenario "specifying png format" do
visit "/user/icon/#{user.login}.png"
expect(page.status_code).to be 200
visit "/user/icon/#{user.login}.png?size=20"
expect(page.status_code).to be 200
end

scenario "without specifying format" do
visit "/user/show/#{user.login}"
expect(page.status_code).to be 200
visit "/user/show/#{user.login}?size=20"
expect(page.status_code).to be 200
end
end

0 comments on commit f9accaf

Please sign in to comment.