Sha256: 78d763185332e073042927566b0e332e65fb1ebcfb13c7f6b4fc5ff7e8ae8d5f

Contents?: true

Size: 662 Bytes

Versions: 20

Compression:

Stored size: 662 Bytes

Contents

require "spec_helper"

describe "notes", stub: :daemon do
  let!(:exists_user) { build(:user) }
  include_context 'daemon has some config histories'

  before { login_with exists_user }

  describe 'update' do
    let(:note_field) { ".note-content" }
    let(:updating_content) { "This config file is for ..." }

    before do
      visit '/daemon/setting/histories'
      within first("form") do
        first(note_field).set updating_content
        click_button(I18n.t('terms.save'))
      end
    end

    it "update a content of a note" do
      within first("form") do
        first(note_field).value.should eq updating_content
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fluentd-ui-1.0.0.beta.1 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-1.0.0.alpha.3 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-1.0.0.alpha.2 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-1.0.0.alpha.1 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.4.5 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.4.4 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.4.3 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.4.2 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.4.1 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.4.0 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.21 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.20 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.19 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.18 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.17 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.16 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.15 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.14 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.13 spec/features/fluentd/setting/notes_spec.rb
fluentd-ui-0.3.12 spec/features/fluentd/setting/notes_spec.rb