Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolai-b committed Jul 31, 2016
1 parent 1f2a009 commit 80e7ff8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion db/schema.rb
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20160716160955) do
ActiveRecord::Schema.define(version: 20160724201231) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down Expand Up @@ -463,6 +463,7 @@
t.string "visibility", limit: 255, default: "public", null: false
t.datetime "created_at"
t.datetime "updated_at"
t.integer "locale"
end

add_index "user_profiles", ["user_id"], name: "index_user_profiles_on_user_id", using: :btree
Expand Down
2 changes: 2 additions & 0 deletions lib/mailbox_processor.rb
@@ -1,3 +1,5 @@
require 'net/imap'

class MailboxProcessor
attr_accessor :config

Expand Down
1 change: 0 additions & 1 deletion spec/features/library/notes_spec.rb
Expand Up @@ -11,7 +11,6 @@
it 'should show the note body correctly' do
expect(page).to have_content(note.body)
expect(page).to have_link(note.created_by.name)
expect(page).to have_content(I18n.localize(note.created_at.to_date))
expect(page).not_to have_content(I18n.t('.shared.tags.panel.edit_tags'))
end
end
Expand Down
4 changes: 2 additions & 2 deletions spec/features/message_thread/thread_notifications_spec.rb
Expand Up @@ -29,7 +29,7 @@

it 'should send an email for a link message' do
within('#new-link-message') do
fill_in 'URL', with: 'example.com'
fill_in 'Web address', with: 'example.com'
fill_in 'Title', with: 'An example URL'
fill_in 'Description', with: 'Some words'
click_on 'Add Link'
Expand Down Expand Up @@ -68,7 +68,7 @@

it 'should not escape link messages' do
within('#new-link-message') do
fill_in 'URL', with: 'example.com?foo&bar'
fill_in 'Web address', with: 'example.com?foo&bar'
fill_in 'Title', with: 'An example URL with & symbols'
fill_in 'Description', with: 'Some words & some more words'
click_on 'Add Link'
Expand Down
4 changes: 2 additions & 2 deletions spec/features/messages/link_messages_spec.rb
Expand Up @@ -16,7 +16,7 @@ def link_form

it 'should post a link message' do
link_form do
fill_in 'URL', with: link_message_attrs[:url]
fill_in 'Web address', with: link_message_attrs[:url]
fill_in 'Title', with: link_message_attrs[:title]
click_on 'Add Link'
end
Expand All @@ -25,7 +25,7 @@ def link_form

it 'should accept a url with whitespace' do
link_form do
fill_in 'URL', with: " #{link_message_attrs[:url]} "
fill_in 'Web address', with: " #{link_message_attrs[:url]} "
fill_in 'Title', with: link_message_attrs[:title]
click_on 'Add Link'
end
Expand Down
1 change: 1 addition & 0 deletions spec/lib/planning_application_worker_spec.rb
@@ -1,4 +1,5 @@
require 'spec_helper'
require 'planning_filter'

describe PlanningApplicationWorker do
before do
Expand Down

0 comments on commit 80e7ff8

Please sign in to comment.