Skip to content

Instantly share code, notes, and snippets.

View seyyah's full-sized avatar

seyyah seyyah

View GitHub Profile
@seyyah
seyyah / hello.rb
Created November 25, 2012 20:50
hello
puts "Hello World!"
source 'https://rubygems.org'
gem 'rails', '3.2.8'
group :assets do
gem 'sass-rails'
gem 'less-rails'
gem 'coffee-rails'
gem 'uglifier'
#!/usr/bin/env python
# Plot a graph of Data which is comming in on the fly
# uses pylab
# Author: Norbert Feurle
# Date: 12.1.2012
# License: if you get any profit from this then please share it with me
import pylab
from pylab import *
xAchse=pylab.arange(0,100,1)
imagemagick
Depends: libbz2-1.0
Depends: libc6
Depends: libfontconfig1
Depends: libfreetype6
Depends: libglib2.0-0
Depends: libgomp1
Depends: libice6
Depends: libjpeg8
Depends: liblcms2-2
GIT
remote: git://github.com/cgunther/formtastic-bootstrap.git
revision: 4e6a7f50153af805470d43a2bd2c9885a902e4a6
branch: bootstrap2-rails3-2-formtastic-2-1
specs:
formtastic-bootstrap (1.1.2)
formtastic
rails (>= 3.1.0)
GIT
Factory.define :item do |f|
include ActionDispatch::TestProcess
f.name "Macbook Pro 15"
f.price_in_dollars 1500
f.photo fixture_file_upload('/files/avatar.jpg', 'image/jpg')
end
# v1: <https://gist.github.com/3180439>
# v2: <https://gist.github.com/3180446>
@question_new
Scenario: I should be able to new/create Question
Given I am on the new question page as "author" with "author, osce_author" roles
When I fill in the new question form with the "Question" data:
| Id | Type | Value |
| Title TR | textarea | Başlık |
# | Description TR | textarea | Açıklama |
# | Image TR | file | /tmp/test.jpg |
# v1: <https://gist.github.com/3180455>
@question_new_form
Scenario: I should be able to see New Question Form
Given I am logged as "author"
And I have "author, osce_author" roles
When I visit the questions list page
And I click link titled "New" in the "Page Header Actions" section
Then I should see "New Question" named "Form"
# v2: <https://gist.github.com/3180446>
@question_new
Scenario: I should be able to new/create Question
Given I am on the "New Question" form page as "author" with "author, osce_author" roles
When I fill in the form with the "Question" data:
| Id | Type | Value |
| Title TR | textarea | Başlık |
| Description TR | textarea | Açıklama |
| Question Image TR | file | /tmp/test.jpg |
| Answer TR | text | Yanıt |
# NOT: v2: <https://gist.github.com/3180446>
# v1
@question_new
Scenario: I should be able to new/create Question
Given I am logged as "author"
And I have "author, osce_author" roles
When I visit the questions list page
And I click link titled "New" in the "Page Header Actions" section
And I fill the form with: