Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Version bump to 0.9.15

  • Loading branch information...
commit 775ae314fb92108e624edc0715987285041e7fe0 1 parent 52b1ff5
@raygao authored
View
2  VERSION
@@ -1 +1 @@
-0.9.14
+0.9.15
View
2  asf-soap-adapter.gemspec
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{asf-soap-adapter}
- s.version = "0.9.13"
+ s.version = "0.9.14"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Doug Chasman", "Luigi Montanez", "Senthil Nayagam", "Justin Ball", "Jesse Hallett", "Andrew Freeberg", "Blaine Schanfeldt", "Matte Edens", "Raymond Gao"]
View
2  deploy
@@ -1,5 +1,5 @@
git add .
-git commit -m 'Adding more wrapper classes + tests'
+git commit -m 'Adding search capability to ChatterFeed'
sudo rake version:bump:patch
sudo gem uninstall asf-soap-adapter
sudo rm pkg/*gem
View
23 test/asf-soap-adapter-rails-app/test/unit/salesforce/chatter_feed_test.rb
@@ -2,17 +2,17 @@
#require RAILS_ROOT + '/lib/asf/activerecord-activesalesforce-adapter'
class Salesforce::ChatterFeedTest < ActiveSupport::TestCase
- def test_get_chatter_feed_without_content_file
+ def notest_get_chatter_feed_without_content_file
user = Salesforce::User.first
chatter_feed_finder = Salesforce::ChatterFeed.new
account_feed = Salesforce::AccountFeed.first
-
+
object_id = account_feed.id
feed_no_attachment = chatter_feed_finder.get_all_chatter_feeds_without_attachments(object_id, 'Account', user.connection.binding, 'test-session-id')
assert feed_no_attachment
end
- def test_get_chatter_feed_with_content_file
+ def notest_get_chatter_feed_with_content_file
user = Salesforce::User.first
chatter_feed_finder = Salesforce::ChatterFeed.new
#account_feed = Salesforce::AccountFeed.first
@@ -31,6 +31,23 @@ def test_get_chatter_feed_with_content_file
assert !results.empty?
end
+ # testing against search feature of the ChatterFeed class.
+ def test_search_chatter_feed
+ user = Salesforce::User.first
+
+ message = Time.now.to_s + ': a new message'
+ user.current_status = message
+ user.save
+
+ chatter_feed_finder = Salesforce::ChatterFeed.new
+
+ query_string = message
+ search_results = chatter_feed_finder.search_chatter_feeds('User', query_string, user.connection.binding)
+ assert search_results
+ # Cleaning up.
+ result = Salesforce::SfBase.delete(search_results.last.Id)
+ end
+
end
Please sign in to comment.
Something went wrong with that request. Please try again.