Skip to content
Browse files

The view helper spec is now up and running. Hip-hop hooray, hoooo..

  • Loading branch information...
1 parent 5dbadc8 commit 57a7036d8b6d377eecd959710ed891e9046e13e3 @aantix committed Nov 19, 2010
View
1 .gitignore
@@ -7,6 +7,7 @@ build.sh
## TEXTMATE
*.tmproj
tmtags
+public
## EMACS
*~
View
7 .idea/.rakeTasks
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Settings><!--This file was automatically generated by Ruby plugin.
-You are allowed to:
-1. Remove rake task
-2. Add existing rake tasks
-To add existing rake tasks automatically delete this file and reload the project.
---><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build gem into pkg/" fullCmd="build" taksId="build" /><RakeTask description="Remove rcov products for rcov" fullCmd="clobber_rcov" taksId="clobber_rcov" /><RakeTask description="Remove rdoc products" fullCmd="clobber_rdoc" taksId="clobber_rdoc" /><RakeTask description="Start IRB with all runtime dependencies loaded" fullCmd="console[script]" taksId="console[script]" /><RakeTask description="Generate and validate gemspec" fullCmd="gemspec" taksId="gemspec" /><RakeGroup description="" fullCmd="" taksId="gemspec"><RakeTask description="Display the gemspec for debugging purposes, as jeweler knows it (not from the filesystem)" fullCmd="gemspec:debug" taksId="debug" /><RakeTask description="Regenreate the gemspec on the filesystem" fullCmd="gemspec:generate" taksId="generate" /><RakeTask description="Regenerate and validate gemspec, and then commits and pushes to git" fullCmd="gemspec:release" taksId="release" /><RakeTask description="Validates the gemspec on the filesystem" fullCmd="gemspec:validate" taksId="validate" /></RakeGroup><RakeGroup description="" fullCmd="" taksId="git"><RakeTask description="Tag and push release to git" fullCmd="git:release" taksId="release" /></RakeGroup><RakeTask description="Build and install gem using `gem install`" fullCmd="install" taksId="install" /><RakeTask description="Run specs using RCov" fullCmd="rcov" taksId="rcov" /><RakeTask description="Build the rdoc HTML Files" fullCmd="rdoc" taksId="rdoc" /><RakeTask description="Release gem" fullCmd="release" taksId="release" /><RakeTask description="Force a rebuild of the RDOC files" fullCmd="rerdoc" taksId="rerdoc" /><RakeGroup description="" fullCmd="" taksId="rubygems"><RakeTask description="Release gem to Gemcutter" fullCmd="rubygems:release" taksId="release" /></RakeGroup><RakeTask description="Run specs" fullCmd="spec" taksId="spec" /><RakeTask description="Displays the current version" fullCmd="version" taksId="version" /><RakeGroup description="" fullCmd="" taksId="version"><RakeGroup description="" fullCmd="" taksId="bump"><RakeTask description="Bump the major version by 1" fullCmd="version:bump:major" taksId="major" /><RakeTask description="Bump the a minor version by 1" fullCmd="version:bump:minor" taksId="minor" /><RakeTask description="Bump the patch version by 1" fullCmd="version:bump:patch" taksId="patch" /></RakeGroup><RakeTask description="Writes out an explicit version" fullCmd="version:write" taksId="write" /></RakeGroup><RakeTask description="" fullCmd="clobber" taksId="clobber" /><RakeTask description="" fullCmd="console" taksId="console" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="gemspec_required" taksId="gemspec_required" /><RakeTask description="" fullCmd="rdoc/index.html" taksId="rdoc/index.html" /><RakeTask description="" fullCmd="version_required" taksId="version_required" /></RakeGroup></Settings>
View
5 .idea/encodings.xml
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
-</project>
-
View
8 .idea/misc.xml
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="DependencyValidationManager">
- <option name="SKIP_IMPORT_STATEMENTS" value="false" />
- </component>
- <component name="ProjectRootManager" version="2" project-jdk-name="Ruby SDK 1.9.2-p0 [rails3]" project-jdk-type="RUBY_SDK" />
-</project>
-
View
9 .idea/modules.xml
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="ProjectModuleManager">
- <modules>
- <module fileurl="file://$PROJECT_DIR$/.idea/sex_it_up.iml" filepath="$PROJECT_DIR$/.idea/sex_it_up.iml" />
- </modules>
- </component>
-</project>
-
View
87 .idea/sex_it_up.iml
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="RUBY_MODULE" version="4">
- <component name="GemRequirementsHolder" version="3">
- <requirement>
- <requirement>
- <dependency name="actionpack" version="3.0.1" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="activerecord" version="3.0.1" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="bundler" version="1.0.0" bound="LATEST_IN_BRANCH" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="factory_girl" version="1.3.2" bound="EQUAL" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="google-search" version="1.0.2" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="jeweler" version="1.5.1" bound="LATEST_IN_BRANCH" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="mechanize" version="1.0.0" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="paperclip" version="2.3.5" bound="GREATER_OR_EQUAL" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="rspec-rails" version="2.1.0" bound="LATEST_IN_BRANCH" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- <requirement>
- <requirement>
- <dependency name="sqlite3-ruby" version="1.3.1" bound="LATEST_IN_BRANCH" git="false" path="false" doRequire="true" />
- </requirement>
- <source from="Gemfile" />
- </requirement>
- </component>
- <component name="NewModuleRootManager">
- <content url="file://$MODULE_DIR$" />
- <orderEntry type="inheritedJdk" />
- <orderEntry type="sourceFolder" forTests="false" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] rake (v0.8.7, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rake-0.8.7)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] rspec (v2.0.0, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rspec-2.0.0)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] bundler (v1.0.0, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/bundler-1.0.0)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] mechanize (v1.0.0, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/mechanize-1.0.0)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] paperclip (v2.3.5, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/paperclip-2.3.5)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] rspec (v1.3.0, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/rspec-1.3.0)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] google-search (v1.0.2, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/google-search-1.0.2)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] json (v1.4.6, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/json-1.4.6)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] activesupport (v3.0.1, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activesupport-3.0.1)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] nokogiri (v1.4.3.1, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/nokogiri-1.4.3.1)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] tzinfo (v0.3.23, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/tzinfo-0.3.23)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] i18n (v0.4.1, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/i18n-0.4.1)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] activemodel (v3.0.1, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activemodel-3.0.1)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] builder (v2.1.2, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/builder-2.1.2)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] arel (v1.0.1, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/arel-1.0.1)" level="application" />
- <orderEntry type="library" scope="PROVIDED" name="[gem] activerecord (v3.0.1, /Users/jjones/.rvm/gems/ruby-1.9.2-p0@rails3/gems/activerecord-3.0.1)" level="application" />
- </component>
-</module>
-
View
8 .idea/vcs.xml
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="VcsDirectoryMappings">
- <mapping directory="" vcs="" />
- <mapping directory="$PROJECT_DIR$" vcs="Git" />
- </component>
-</project>
-
View
594 .idea/workspace.xml
@@ -1,594 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="ChangeListManager">
- <list default="true" id="14caa7ed-9d0d-4a7a-b994-4ab069add87d" name="Default" comment="">
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/sex_it_up.rb" afterPath="$PROJECT_DIR$/lib/sex_it_up.rb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/sex_it_up_spec.rb" afterPath="$PROJECT_DIR$/spec/sex_it_up_spec.rb" />
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/spec_helper.rb" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
- </list>
- <ignored path="sex_it_up.iws" />
- <ignored path=".idea/workspace.xml" />
- <option name="TRACKING_ENABLED" value="true" />
- <option name="SHOW_DIALOG" value="false" />
- <option name="HIGHLIGHT_CONFLICTS" value="true" />
- <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
- <option name="LAST_RESOLUTION" value="IGNORE" />
- </component>
- <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
- <component name="CreatePatchCommitExecutor">
- <option name="PATCH_PATH" value="" />
- <option name="REVERSE_PATCH" value="false" />
- </component>
- <component name="DaemonCodeAnalyzer">
- <disable_hints />
- </component>
- <component name="FavoritesManager">
- <favorites_list name="sex_it_up" />
- </component>
- <component name="FileColors" enabled="true" enabledForTabs="true" showNonProject="false" />
- <component name="FileEditorManager">
- <leaf>
- <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/Rakefile">
- <provider selected="true" editor-type-id="text-editor">
- <state line="15" column="58" selection-start="511" selection-end="511" vertical-scroll-proportion="-10.555555">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/Gemfile">
- <provider selected="true" editor-type-id="text-editor">
- <state line="2" column="27" selection-start="87" selection-end="87" vertical-scroll-proportion="-1.4814814">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="sex_it_up_spec.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/spec/sex_it_up_spec.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="23" column="58" selection-start="988" selection-end="988" vertical-scroll-proportion="-10.481482">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="paperclip.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/spec/initializers/paperclip.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="13" column="0" selection-start="256" selection-end="256" vertical-scroll-proportion="-9.62963">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="sex_it_up_image_factory.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/spec/factories/sex_it_up_image_factory.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="4" column="143" selection-start="425" selection-end="544" vertical-scroll-proportion="-2.9629629">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="sex_it_up.rb" pinned="false" current="true" current-in-tab="true">
- <entry file="file://$PROJECT_DIR$/lib/sex_it_up.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="13" column="20" selection-start="255" selection-end="255" vertical-scroll-proportion="0.5383023">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="paperclip.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p0@rails3/gems/paperclip-2.3.5/lib/paperclip.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="74" column="8" selection-start="2812" selection-end="2812" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- <file leaf-file-name="spec_helper.rb" pinned="false" current="false" current-in-tab="false">
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="18" column="0" selection-start="344" selection-end="344" vertical-scroll-proportion="-5.9259257">
- <folding />
- </state>
- </provider>
- </entry>
- </file>
- </leaf>
- </component>
- <component name="FindManager">
- <FindUsagesManager>
- <setting name="OPEN_NEW_TAB" value="false" />
- </FindUsagesManager>
- </component>
- <component name="Git.Branch.Configurations">
- <option name="CURRENT" value="master" />
- <option name="CONFIGURATIONS">
- <array>
- <BranchConfiguration>
- <option name="IS_AUTO_DETECTED" value="true" />
- <option name="NAME" value="master" />
- <option name="BRANCHES">
- <array>
- <BranchInfo>
- <option name="ROOT" value="$PROJECT_DIR$" />
- <option name="REFERENCE" value="master" />
- </BranchInfo>
- </array>
- </option>
- </BranchConfiguration>
- </array>
- </option>
- </component>
- <component name="Git.Settings">
- <option name="GIT_EXECUTABLE" value="/usr/local/bin/git" />
- <option name="CHECKOUT_INCLUDE_TAGS" value="false" />
- <option name="UPDATE_CHANGES_POLICY" value="STASH" />
- </component>
- <component name="IdeDocumentHistory">
- <option name="changedFiles">
- <list>
- <option value="$PROJECT_DIR$/lib/tasks/sex_it_up.rb" />
- <option value="$PROJECT_DIR$/generators/sex_it_up/sex_it_up_generator.rb" />
- <option value="$PROJECT_DIR$/.gitignore" />
- <option value="$PROJECT_DIR$/build.sh" />
- <option value="$PROJECT_DIR$/VERSION" />
- <option value="$PROJECT_DIR$/autotest/discover.rb" />
- <option value="$PROJECT_DIR$/generators/sex_it_up/templates/sex_it_up_migration.rb.erb" />
- <option value="$PROJECT_DIR$/spec/factories/sex_it_up_images_factory.rb" />
- <option value="$PROJECT_DIR$/Rakefile" />
- <option value="$PROJECT_DIR$/Gemfile" />
- <option value="$USER_HOME$/.rvm/gems/ruby-1.9.2-p0@rails3/gems/paperclip-2.3.5/lib/paperclip/railtie.rb" />
- <option value="$PROJECT_DIR$/spec/factories/sex_it_up_image_factory.rb" />
- <option value="$PROJECT_DIR$/spec/paperclip.rb" />
- <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
- <option value="$PROJECT_DIR$/spec/sex_it_up_spec.rb" />
- <option value="$PROJECT_DIR$/lib/sex_it_up.rb" />
- </list>
- </option>
- </component>
- <component name="ProjectLevelVcsManager">
- <OptionsSetting value="true" id="Add" />
- <OptionsSetting value="true" id="Remove" />
- <OptionsSetting value="true" id="Checkout" />
- <OptionsSetting value="true" id="Update" />
- <OptionsSetting value="true" id="Status" />
- <OptionsSetting value="true" id="Edit" />
- <ConfirmationsSetting value="0" id="Add" />
- <ConfirmationsSetting value="0" id="Remove" />
- </component>
- <component name="ProjectReloadState">
- <option name="STATE" value="0" />
- </component>
- <component name="ProjectView">
- <navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
- <flattenPackages />
- <showMembers />
- <showModules />
- <showLibraryContents />
- <hideEmptyPackages />
- <abbreviatePackageNames />
- <autoscrollToSource />
- <autoscrollFromSource />
- <sortByType />
- </navigator>
- <panes>
- <pane id="ProjectPane">
- <subPane>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="spec" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="spec" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="initializers" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="spec" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="factories" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="lib" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="generators" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="generators" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="templates" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- <PATH>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="sex_it_up" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- <PATH_ELEMENT>
- <option name="myItemId" value="autotest" />
- <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
- </PATH_ELEMENT>
- </PATH>
- </subPane>
- </pane>
- <pane id="Scope" />
- <pane id="Favorites" />
- </panes>
- </component>
- <component name="PropertiesComponent">
- <property name="options.splitter.main.proportions" value="0.3" />
- <property name="options.lastSelected" value="preferences.general" />
- <property name="recentsLimit" value="5" />
- <property name="GoToClass.includeJavaFiles" value="false" />
- <property name="options.splitter.details.proportions" value="0.2" />
- <property name="options.searchVisible" value="true" />
- </component>
- <component name="RunManager" selected="Ruby.sex_it_up_spec">
- <configuration default="false" name="sex_it_up_spec" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
- <module name="sex_it_up" />
- <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$PROJECT_DIR$/spec" />
- <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
- <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
- <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
- <envs />
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
- <COVERAGE_PATTERN ENABLED="true">
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
- </COVERAGE_PATTERN>
- </EXTENSION>
- <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/sex_it_up_spec.rb" />
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
- <RunnerSettings RunnerId="RubyRunner" />
- <ConfigurationWrapper RunnerId="RubyRunner" />
- <method />
- </configuration>
- <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
- <predefined_log_file id="RUBY_RSPEC" enabled="true" />
- <module name="" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
- <envs />
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
- <COVERAGE_PATTERN ENABLED="true">
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
- </COVERAGE_PATTERN>
- </EXTENSION>
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="[none]" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
- <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
- <method />
- </configuration>
- <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
- <module name="" />
- <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
- <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
- <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
- <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
- <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
- <envs />
- <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
- <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" track_test_folders="true" runner="rcov">
- <COVERAGE_PATTERN ENABLED="true">
- <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
- </COVERAGE_PATTERN>
- </EXTENSION>
- <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
- <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
- <method />
- </configuration>
- <list size="1">
- <item index="0" class="java.lang.String" itemvalue="Ruby.sex_it_up_spec" />
- </list>
- </component>
- <component name="ShelveChangesManager" show_recycled="false" />
- <component name="SvnConfiguration" maxAnnotateRevisions="500">
- <option name="USER" value="" />
- <option name="PASSWORD" value="" />
- <option name="LAST_MERGED_REVISION" />
- <option name="UPDATE_RUN_STATUS" value="false" />
- <option name="MERGE_DRY_RUN" value="false" />
- <option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
- <option name="UPDATE_LOCK_ON_DEMAND" value="false" />
- <option name="IGNORE_SPACES_IN_MERGE" value="false" />
- <option name="DETECT_NESTED_COPIES" value="true" />
- <option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
- <option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
- <option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
- <configuration useDefault="true">$USER_HOME$/.subversion_IDEA</configuration>
- <myIsUseDefaultProxy>false</myIsUseDefaultProxy>
- </component>
- <component name="TaskManager">
- <task active="true" id="Default" summary="Default task">
- <changelist id="14caa7ed-9d0d-4a7a-b994-4ab069add87d" name="Default" comment="" />
- <created>1289352372437</created>
- <updated>1289352372437</updated>
- </task>
- <servers />
- </component>
- <component name="ToolWindowManager">
- <frame x="0" y="22" width="1440" height="812" extended-state="6" />
- <editor active="true" />
- <layout>
- <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
- <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.23119777" sideWeight="0.7468355" order="1" side_tool="false" content_ui="tabs" />
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
- <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.21045198" sideWeight="0.7688022" order="0" side_tool="false" content_ui="tabs" />
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.23182711" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
- <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
- <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
- <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
- <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
- <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.22562674" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
- <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
- <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
- </layout>
- </component>
- <component name="VcsManagerConfiguration">
- <option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
- <option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
- <option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
- <option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
- <option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
- <option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
- <option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
- <option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
- <option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
- <option name="ENABLE_BACKGROUND_PROCESSES" value="false" />
- <option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
- <option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
- <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
- <option name="LAST_COMMIT_MESSAGE" />
- <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
- <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
- <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
- <option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
- <option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
- <option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
- <option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
- <option name="ACTIVE_VCS_NAME" />
- <option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
- <option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
- <option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
- <option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
- </component>
- <component name="XDebuggerManager">
- <breakpoint-manager />
- </component>
- <component name="editorHistoryManager">
- <entry file="file://$PROJECT_DIR$/sex_it_up.gemspec">
- <provider selected="true" editor-type-id="text-editor">
- <state line="12" column="100" selection-start="451" selection-end="451" vertical-scroll-proportion="0.54545456" />
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/autotest/discover.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="0" column="42" selection-start="35" selection-end="35" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/lib/tasks/sex_it_up.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="3" column="32" selection-start="45" selection-end="45" vertical-scroll-proportion="0.08708273">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/generators/sex_it_up/sex_it_up_generator.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="5" column="45" selection-start="224" selection-end="224" vertical-scroll-proportion="0.147929">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/generators/sex_it_up/templates/sex_it_up_migration.rb.erb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="12" column="0" selection-start="61" selection-end="353" vertical-scroll-proportion="0.24948025">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/README.rdoc">
- <provider selected="true" editor-type-id="text-editor">
- <state line="13" column="0" selection-start="642" selection-end="642" vertical-scroll-proportion="0.35714287">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p0@rails3/gems/paperclip-2.3.5/lib/paperclip/railtie.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="8" column="31" selection-start="260" selection-end="260" vertical-scroll-proportion="0.2322206">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p0@rails3/gems/google-search-1.0.2/lib/google-search/search/mixins/filter.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="7" column="10" selection-start="126" selection-end="126" vertical-scroll-proportion="0.26768643">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="18" column="0" selection-start="344" selection-end="344" vertical-scroll-proportion="-5.9259257">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.2-p0@rails3/gems/paperclip-2.3.5/lib/paperclip.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="74" column="8" selection-start="2812" selection-end="2812" vertical-scroll-proportion="0.0">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/Rakefile">
- <provider selected="true" editor-type-id="text-editor">
- <state line="15" column="58" selection-start="511" selection-end="511" vertical-scroll-proportion="-10.555555">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/Gemfile">
- <provider selected="true" editor-type-id="text-editor">
- <state line="2" column="27" selection-start="87" selection-end="87" vertical-scroll-proportion="-1.4814814">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/spec/sex_it_up_spec.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="23" column="58" selection-start="988" selection-end="988" vertical-scroll-proportion="-10.481482">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/spec/initializers/paperclip.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="13" column="0" selection-start="256" selection-end="256" vertical-scroll-proportion="-9.62963">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/spec/factories/sex_it_up_image_factory.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="4" column="143" selection-start="425" selection-end="544" vertical-scroll-proportion="-2.9629629">
- <folding />
- </state>
- </provider>
- </entry>
- <entry file="file://$PROJECT_DIR$/lib/sex_it_up.rb">
- <provider selected="true" editor-type-id="text-editor">
- <state line="13" column="20" selection-start="255" selection-end="255" vertical-scroll-proportion="0.5383023">
- <folding />
- </state>
- </provider>
- </entry>
- </component>
-</project>
-
View
27 generators/sex_it_up/templates/sex_it_up_migration.rb.erb
@@ -1,19 +1,20 @@
class CreateSexItUp < ActiveRecord::Migration
+ def self.up
+ #load(File.dirname(__FILE__) + '/../../../spec/schema.rb')
+ create_table "sex_it_up_images" do |t|
+ t.string :image_search_term
+ t.string :image_original_url
+ t.string :image_url
+ t.string :image_file_name
+ t.string :image_content_type
+ t.integer :image_file_size
+ t.datetime :image_updated_at
+ end
- def self.up
- create_table "sex_it_up_images" do |t|
- t.string :image_search_term
- t.string :image_original_url
- t.string :image_url
- t.string :image_file_name
- t.string :image_content_type
- t.integer :image_file_size
- t.datetime :image_updated_at
end
- end
- def self.down
- drop_table :sex_it_up_images
- end
+ def self.down
+ drop_table :sex_it_up_images
+ end
end
View
12 lib/sex_it_up.rb
@@ -71,26 +71,22 @@ def self.cache(search_term, img_url)
:image => image)
end
-# def reprocess
-# self.image.reprocess!
-# end
-
end
- module SexItUpViewHelper
+ module SexItUpHelper
# Searches wikimedia for passed in term. Caches all initial results.
# As you search through results, image files will generally follow the form e.g. "File:<image name>.jpg - Wikimedia Commons"
# Retains the original image and will generate scaled versions based on coordinates passed in
# Allow for an optional watermark that defaults to the text "Placeholder"
def sexy_image(term, opts = {})
-
- image_tag
+ #image_tag
+ 'yes'
end
end
end
-ActionView::Base.send :include, SexItUp::SexItUpViewHelper
+ActionView::Base.send :include, SexItUp::SexItUpHelper
View
13 spec/helpers/sex_it_up_helper.rb
@@ -0,0 +1,13 @@
+ROOT_DIR = `pwd`.strip unless defined? ROOT_DIR
+require ROOT_DIR + '/spec/spec_helper'
+
+describe SexItUp::SexItUpHelper do
+ include SexItUp::SexItUpHelper
+
+ describe "sexy_image" do
+ it "should equal 'yes'" do
+ sexy_image('dog').should == 'yes'
+ end
+ end
+
+end
View
12 spec/schema.rb
@@ -0,0 +1,12 @@
+ActiveRecord::Schema.define :version => 0 do
+ create_table "sex_it_up_images" do |t|
+ t.string :image_search_term
+ t.string :image_original_url
+ t.string :image_url
+ t.string :image_file_name
+ t.string :image_content_type
+ t.integer :image_file_size
+ t.datetime :image_updated_at
+ end
+
+end
View
18 spec/spec_helper.rb
@@ -15,29 +15,27 @@
DB = '/tmp/jobs.sqlite'
+# Delete the db if exists so we have a clean slate to run against.
File.delete(DB) rescue nil
+
+# Delete the paperclip cache directory
FileUtils.rm_rf('public')
ActiveRecord::Base.logger = Logger.new('/tmp/sex_it_up.log')
ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => DB)
ActiveRecord::Schema.define(:version => 1) do
- create_table "sex_it_up_images" do |t|
- t.string :image_search_term
- t.string :image_original_url
- t.string :image_url
- t.string :image_file_name
- t.string :image_content_type
- t.integer :image_file_size
- t.datetime :image_updated_at
- end
+ ActiveRecord::Migration.verbose = false
+ load(File.dirname(__FILE__) + '/schema.rb')
end
-
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
+Dir["#{File.dirname(__FILE__)}/helpers/**/*.rb"].each {|f| require f}
+# Factories aren't autodiscovered in non-rails environments so have to
+# explicitly find them.
Factory.find_definitions
RSpec.configure do |config|

0 comments on commit 57a7036

Please sign in to comment.
Something went wrong with that request. Please try again.