forked from fixin.me/fixin.me
		
	Merging from main master to my repo master. #4
@ -1 +1,5 @@
 | 
				
			|||||||
require 'core_ext/big_decimal/formatting'
 | 
					require 'core_ext/big_decimal_scientific_notation'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ActiveSupport.on_load :action_dispatch_system_test_case do
 | 
				
			||||||
 | 
					  prepend CoreExt::ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelperUniqueId
 | 
				
			||||||
 | 
					end
 | 
				
			||||||
 | 
				
			|||||||
@ -1,3 +0,0 @@
 | 
				
			|||||||
ActiveSupport.on_load :action_dispatch_system_test_case do
 | 
					 | 
				
			||||||
  prepend CoreExt::ActionDispatch::SystemTesting::TestHelpers::CustomScreenshotHelperUniqueId
 | 
					 | 
				
			||||||
end
 | 
					 | 
				
			||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
module CoreExt::ActionDispatch::SystemTesting::TestHelpers::CustomScreenshotHelperUniqueId
 | 
					module CoreExt::ActionDispatch::SystemTesting::TestHelpers::ScreenshotHelperUniqueId
 | 
				
			||||||
  private
 | 
					  private
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def unique
 | 
					  def unique
 | 
				
			||||||
@ -1,4 +1,4 @@
 | 
				
			|||||||
module FixinMe
 | 
					module CoreExt
 | 
				
			||||||
  module BigDecimalScientificNotation
 | 
					  module BigDecimalScientificNotation
 | 
				
			||||||
    def to_scientific
 | 
					    def to_scientific
 | 
				
			||||||
      return 'NaN' unless finite?
 | 
					      return 'NaN' unless finite?
 | 
				
			||||||
@ -33,4 +33,4 @@ module FixinMe
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BigDecimal.prepend(FixinMe::BigDecimalScientificNotation)
 | 
					BigDecimal.prepend CoreExt::BigDecimalScientificNotation
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user