Sha256: 4d4055eb106a7ad6a633fe17d7139d0813afb9c09e2f85781e344389e9549765

Contents?: true

Size: 635 Bytes

Versions: 2

Compression:

Stored size: 635 Bytes

Contents

require 'spec_helper'

# NOTE: These specs are very much tied into the output of the
# `rake dummy:scaffold` commands. A change in those means a likely
# change in the behavior.
describe 'DummyScaffoldActivity', type: :feature do

  it 'when I do a registered activity it is recorded' do
    expect {
      visit('/watches/new')
      click_button("Create Watch")
    }.to change{ActivityEngine::Activity.count}.by(1)
  end

  it 'when I do a non-registered activity it is not recorded' do
    expect {
      visit('/invisibles/new')
      click_button("Create Invisible")
    }.to_not change{ActivityEngine::Activity.count}
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activity_engine-0.0.9 spec/features/dummy_scaffold_activity_spec.rb
activity_engine-0.0.8 spec/features/dummy_scaffold_activity_spec.rb