Skip to content

Instantly share code, notes, and snippets.

View rubystar's full-sized avatar

Venkata Reddy Bhavanam rubystar

View GitHub Profile
@rubystar
rubystar / cucumber on rails upgrade
Created September 7, 2012 14:26
cucumber on rails upgrade
This file has been truncated, but you can view the full file.
Using the default profile...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
@rubystar
rubystar / cucumber on rails upgrade
Created September 7, 2012 14:25
cucumber on rails upgrade
This file has been truncated, but you can view the full file.
Using the default profile...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
Sunspot server is starting...
On rails 3.2 console
[84] pry(main)> d = DeliveryReportTemplate.new
=> #<DeliveryReportTemplate id: nil, name: nil, slug: nil, enforced_coordinates: #<OpenStruct>, columns: nil, unrolled: nil, created_at: nil, updated_at: nil, row_style_column: nil, delta: nil, groups: nil, delivery_filter: #<DeliveryFilter:0x0000000b36ae88>, remote_requestable: false, copy: nil>
[85] pry(main)> d.name="TEST 1"
=> "TEST 1"
[86] pry(main)> d.slug="test_1"
=> "test_1"
[87] pry(main)> d.columns=[]
@rubystar
rubystar / merge conflicts while rebasing kevin latest rails upgrade changes
Created August 31, 2012 05:45
merge conflicts while rebasing kevin latest rails upgrade changes
-sh-4.2$ git pull RZ-3310-kevin
fatal: 'RZ-3310-kevin' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
-sh-4.2$ git pull origin RZ-3310-kevin
From github.com:venkatab/redzone
* branch RZ-3310-kevin -> FETCH_HEAD
Auto-merging Gemfile
Auto-merging Gemfile.lock
CONFLICT (content): Merge conflict in Gemfile.lock
Auto-merging app/assets/images/add.gif
@rubystar
rubystar / deprcation messages rails 3.2
Created July 11, 2012 10:56
cucumber deprecation with 3.2
This file has been truncated, but you can view the full file.
-sh-4.2$ bundle exec cucumber > /home/local/PENNYWISE/venkatab/Desktop/cuke.txt
/usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead.
NOTE: Gem.latest_load_paths is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.latest_load_paths called from /usr/local/rvm/gems/ruby-1.9.3-p0@redzone/gems/spork-0.8.4/lib/spork.rb:112.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
NOTE: Gem.all_partials is deprecated with no replacement. It will be removed on or after 2011-10-01.
Gem.all_partials called from /usr/local/rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems.rb:603.
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.6) (fedora-63.1.10.6.fc15-x86_64)
@rubystar
rubystar / failing specs
Created July 9, 2012 13:22
rails upgrade to 3.2.6
Failures:
1) Campaign test for uniquiness should return one order when there are duplicates
Failure/Error: @campaign1 = Factory.create(:campaign,
ActiveRecord::RecordInvalid:
Validation failed: Start date must be on or before all start dates for ads, budget allocations and site allocations for this campaign (2012-07-01)
# ./spec/integration/campaign_spec.rb:51:in `block (3 levels) in <top (required)>'
2) Campaign test for uniquiness should return one zone when there are duplicates
Failure/Error: @campaign1 = Factory.create(:campaign,
@rubystar
rubystar / specs on 3.2.6
Created July 5, 2012 12:51
rails upgrade to 3.2.6
Failures:
1) MetaDelivery Generate child deliveries based on the values used for the MetaDelivery (when everything calculates evenly) should regenerate deliveries when updating a record (covers several situations - single day => single day => multiple days => single day)
Failure/Error: @meta_delivery.deliveries.collect{|d| d.delivered_at.to_date}.should == [Date.today]
expected: [Fri, 15 Oct 2010]
got: [Thu, 14 Oct 2010] (using ==)
Diff:
@@ -1,2 +1,2 @@
-[Fri, 15 Oct 2010]
+[Thu, 14 Oct 2010]
@rubystar
rubystar / cucumber specs on various versions ruby and rails
Created July 3, 2012 12:28
cucumber specs on various versions ruby and rails
with 187, 3.0.10
454 scenarios (157 failed, 28 skipped, 269 passed)
7731 steps (157 failed, 2072 skipped, 5502 passed)
341m39.302s
With 193, 3.0.10
454 scenarios (148 failed, 39 skipped, 267 passed)
7731 steps (148 failed, 2169 skipped, 5414 passed)
236m59.899s
@rubystar
rubystar / specmodelsad_spec.rb
Created June 26, 2012 12:50
spec/models/ad_spec.rb
context "when sd is today" do
it "should set start_date appropriately" do
@ad.start_date = Date.today
@ad.start_date.to_s.should == DateTime.parse("Wed, 15 Sep 2010 13:15:00 -0500").in_time_zone.to_s
end
end
context "when sd is tomorrow" do
it "should set start_date appropriately" do
@ad.start_date = Date.tomorrow
@ad.start_date.to_s.should == DateTime.parse("Thu, 16 Sep 2010 00:00:00 -0500").in_time_zone.to_s
@rubystar
rubystar / spec running report with 1.9.3
Created June 22, 2012 11:55
final specs status with 1.9.3
Resolved collector.newrelic.com to 204.93.223.153
...........................................................F......................................FF..*.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F..F..........................................................................................................................................................................................................................................................................................................................................................................................