Skip to content

Conversation

@mkopala
Copy link

@mkopala mkopala commented Jan 17, 2011

Threw in a PHP version of the github script as well.

See you in a few hours.

* stub the image_tag method
* add an improved description
…link"

* added require for Rails reverse_merge library file
* added stub methods for profile_path, url_for_file_column, image_tag, and link_to
* change to_s to to_str in Photo class
…ink"

* refactored test methods & descriptions, and created common before block
…user is a rep user"

* replaced code in helper.rb with call to has_valid_photo?, which exists in user_profile.rb, and is already stubbed
* regroup tests again, update describe strings, and consolidate stuff in before blocks
…user is a regular user"

* add stub methods to get test to pass
* modified code to return 'NO DEFAULT' instead of empty string
* changed test to check for 'NO DEFAULT' for both types of users
* removed useless line from code
* fix placement of final test to be inside proper describe block
* initialize the @html attribute and stub 'profile_path' when the @Profile is created
* add else section to if block in code for case with profile but no user
* stub image_tag, link_to methods
* remove default_photo method
* url_for_file_column, image_tag, profile_path, and link_to only appear once in the code
* remove comment about 'this should not happen'
  - if that were the case there would be an exception/error, instead of a test
…, or huge

* only testing the 'regular' user case so far
…a loop

* restructure the test code so the test strings are more consistent
* combined 'image_size' method in to new method
* removed static "foo" method that seemed useless
Get the commits for Ruby on Rails from Github using the JSON API and print
the results in HTML format using and ERB template.
* Not needed for running spec from the command line
* Not that important or useful right now, but README seemed to indicate it was desired
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant