Sha256: 7a1a852952fdb8cf0b0a64fdb5436116e6ac5517159101d5c9e343926bd017a8

Contents?: true

Size: 317 Bytes

Versions: 4

Compression:

Stored size: 317 Bytes

Contents

require 'spec_helper'

describe Gamification::ApplicationHelper do
  describe '.reward' do
    let(:article) { create :article }
    let(:user)    { create :user }

    it 'renders a form' do
      form = Capybara.string reward user, for: article

      expect(form).to have_button 'Complete goals'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gamification-1.0.3 spec/helpers/gamification/application_helper_spec.rb
gamification-1.0.2 spec/helpers/gamification/application_helper_spec.rb
gamification-1.0.1 spec/helpers/gamification/application_helper_spec.rb
gamification-1.0.0 spec/helpers/gamification/application_helper_spec.rb