aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/models/xapian_spec.rb2
-rw-r--r--spec/views/request/_describe_state.rhtml_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/xapian_spec.rb b/spec/models/xapian_spec.rb
index 7d7e7f6c1..7a7112eb1 100644
--- a/spec/models/xapian_spec.rb
+++ b/spec/models/xapian_spec.rb
@@ -96,7 +96,7 @@ describe User, " when indexing requests by user they are from" do
u.name = 'Robert Smith'
u.save!
u.url_name.should == 'robert_smith'
- ActsAsXapian.update_index(true, verbose) # true = flush to disk
+ ActsAsXapian.update_index(flush_to_disk=true, verbose)
# check we get results expected
xapian_object = InfoRequest.full_search([InfoRequestEvent], "requested_by:bob_smith", 'created_at', true, nil, 100, 1)
diff --git a/spec/views/request/_describe_state.rhtml_spec.rb b/spec/views/request/_describe_state.rhtml_spec.rb
index 8460013d3..9fb776db3 100644
--- a/spec/views/request/_describe_state.rhtml_spec.rb
+++ b/spec/views/request/_describe_state.rhtml_spec.rb
@@ -55,7 +55,7 @@ describe 'when showing the form for describing the state of a request' do
it 'should show the form for someone else to classify the request' do
do_render
- response.should have_tag('h2', :text => 'Can you help us by describing the status of this request now?')
+ response.should have_tag('h2', :text => /We need your help/)
end
it 'should not give a link to login' do