Sha256: 9e27b84f13c73805f834ea425fe3f52be342981e2e3511a6afcf8d64c1b3df31
Contents?: true
Size: 1.05 KB
Versions: 7
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe Twitter::Bootstrap::Markup::Rails::Helpers::ProgressBarHelpers do include BootstrapSpecHelper before do @output_buffer = '' end it 'should create a bar with the progress class' do concat bootstrap_progress_bar_tag(40) output_buffer.should have_tag("div.progress div.bar") end it 'should have the correct width' do concat bootstrap_progress_bar_tag(40) output_buffer.should have_tag(:div, :style => 'width: 40%;') end it 'stores sets the type of the progress bar' do concat bootstrap_progress_bar_tag(40, :type => :striped) output_buffer.should have_tag("div.progress.progress-striped") end it 'stores sets the types of the progress bar' do concat bootstrap_progress_bar_tag(40, :type => [:striped, :warning]) output_buffer.should have_tag("div.progress.progress-striped.progress-warning") end it 'stores sets the active flag of the progress bar' do concat bootstrap_progress_bar_tag(40, :active => true) output_buffer.should have_tag("div.progress.active") end end
Version data entries
7 entries across 7 versions & 2 rubygems